Skip to content

Instantly share code, notes, and snippets.

@degamer106
Created March 21, 2018 14:48
Show Gist options
  • Save degamer106/7c03b0c5af1c9a7b43c873b7dad3e153 to your computer and use it in GitHub Desktop.
Save degamer106/7c03b0c5af1c9a7b43c873b7dad3e153 to your computer and use it in GitHub Desktop.
Appium 1.7.2 - Expo errors
[Appium] Welcome to Appium v1.7.2 (REV 7ad6d98cedde01809e32d56ab8ced064f6f28175)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"iOS","deviceName":"iPhone Simulator","xcodeOrgId":"58HKZG8YVV","xcodeSigningId":"iPhone Developer","updatedWDABundleId":"com.trinet.WebDriverAgentRunner","automationName":"XCUITest","app":"/Users/alin/.expo/ios-simulator-app-cache/Exponent-2.3.0.app"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformName":"iOS","deviceName":"iPhone Simulator","xcodeOrgId":"58HKZG8YVV","xcodeSigningId":"iPhone Developer","updatedWDABundleId":"com.trinet.WebDriverAgentRunner","automationName":"XCUITest","app":"/Users/alin/.expo/ios-simulator-app-cache/Exponent-2.3.0.app"},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1521608368924 (21:59:28 GMT-0700 (PDT))
[Appium] Creating new XCUITestDriver (v2.64.0) session
[Appium] Capabilities:
[Appium] platformName: iOS
[Appium] deviceName: iPhone Simulator
[Appium] xcodeOrgId: 58HKZG8YVV
[Appium] xcodeSigningId: iPhone Developer
[Appium] updatedWDABundleId: com.trinet.WebDriverAgentRunner
[Appium] automationName: XCUITest
[Appium] app: /Users/alin/.expo/ios-simulator-app-cache/Exponent-2.3.0.app
[BaseDriver] Session created with session id: fc47841c-0721-409c-9214-c44428cc9cec
[debug] [XCUITest] Current user: 'alin'
[debug] [XCUITest] Current version of libimobiledevice: stable 1.2.0 (bottled), HEAD
[debug] [XCUITest] Xcode version set to '9.2' (tools v9.2.0.0.1.1510905681)
[debug] [XCUITest] iOS SDK Version set to '11.2'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1521608370400 (21:59:30 GMT-0700 (PDT))
[debug] [XCUITest] Changing deviceName from 'iPhone Simulator' to 'iPhone 6'
[XCUITest] Simulator udid not provided, using desired caps to create a new simulator
[XCUITest] No platformVersion specified. Using latest version Xcode supports: '11.2' This may cause problems if a simulator does not exist for this platform version.
[debug] [simctl] Creating simulator with name 'appiumTest-fc47841c-0721-409c-9214-c44428cc9cec', device type id 'iPhone 6' and runtime id '11.2'
[iOSSim] Constructing iOS simulator for Xcode version 9.2 with udid 'E726D50D-28D3-43BE-8A8B-902A950FD815'
[XCUITest] Created simulator with udid 'E726D50D-28D3-43BE-8A8B-902A950FD815'.
[XCUITest] Determining device to run tests on: udid: 'E726D50D-28D3-43BE-8A8B-902A950FD815', real device: false
[BaseDriver] Using local app '/Users/alin/.expo/ios-simulator-app-cache/Exponent-2.3.0.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1521608371549 (21:59:31 GMT-0700 (PDT))
[debug] [XCUITest] Checking whether app '/Users/alin/.expo/ios-simulator-app-cache/Exponent-2.3.0.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [iOS] Getting bundle ID from app '/Users/alin/.expo/ios-simulator-app-cache/Exponent-2.3.0.app': 'host.exp.Exponent'
[debug] [BaseDriver] Event 'resetStarted' logged at 1521608371552 (21:59:31 GMT-0700 (PDT))
[XCUITest] Not scrubbing third party app in anticipation of uninstall
[debug] [BaseDriver] Event 'resetComplete' logged at 1521608371664 (21:59:31 GMT-0700 (PDT))
[XCUITest] Continuing without capturing logs: iOS Simulator with udid E726D50D-28D3-43BE-8A8B-902A950FD815 is not running
[XCUITest] Setting up simulator
[debug] [iOS] No reason to set locale
[debug] [iOS] No iOS / app preferences to set
[debug] [iOSSim] No Simulator cache items for cleanup were matched in '/Users/alin/Library/Developer/CoreSimulator/Devices/E726D50D-28D3-43BE-8A8B-902A950FD815/data/Library/Caches'
[debug] [iOSSim] Setting common Simulator preferences to {"ConnectHardwareKeyboard":false}
[debug] [iOSSim] Updated E726D50D-28D3-43BE-8A8B-902A950FD815 Simulator preferences at '/Users/alin/Library/Preferences/com.apple.iphonesimulator.plist' with {"ConnectHardwareKeyboard":false}
[debug] [iOSSim] The count of running Simulator UI client instances is 1
[iOSSim] Booting Simulator with UDID E726D50D-28D3-43BE-8A8B-902A950FD815...
[iOSSim] Simulator with UDID E726D50D-28D3-43BE-8A8B-902A950FD815 booted in 17 seconds
[debug] [BaseDriver] Event 'simStarted' logged at 1521608388938 (21:59:48 GMT-0700 (PDT))
[debug] [XCUITest] Starting log capture for iOS Simulator with udid 'E726D50D-28D3-43BE-8A8B-902A950FD815', using 'xcrun simctl spawn E726D50D-28D3-43BE-8A8B-902A950FD815 log stream --style compact'
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1521608389838 (21:59:49 GMT-0700 (PDT))
[debug] [XCUITest] Installing '/Users/alin/.expo/ios-simulator-app-cache/Exponent-2.3.0.app' on Simulator with UUID 'E726D50D-28D3-43BE-8A8B-902A950FD815'...
[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event 'appInstalled' logged at 1521608394895 (21:59:54 GMT-0700 (PDT))
[XCUITest] Using WDA path: '/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Detected 1 obsolete cached process from previous WDA sessions. Cleaning up...
[XCUITest] Failed to kill obsolete cached process '14614'. Original error:
Error: Killing process 14614 failed:
at Array.map (<anonymous>)
at Promise.all.then (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/fkill/index.js:68:10)
at <anonymous>
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.2\",\n \"sdkVersion\" : \"11.2\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.2\",\n \"ip\" : \"10.0.0.8\"\n },\n \"build\" : {\n \"time\" : \"Mar 19 2018 22:28:31\"\n }\n },\n \"sessionId\" : \"3C1E0E1D-DA37-45B6-BE63-9CCD9034DC41\",\n \"status\" : 0\n}"
[XCUITest] Will reuse previously cached WDA instance at 'http://localhost:8100/'. Set the wdaLocalPort capability to a value different from 8100 if this is an undesired behavior.
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1521608395435 (21:59:55 GMT-0700 (PDT))
[XCUITest] Using provided WebdriverAgent at 'http://localhost:8100/'
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1521608395438 (21:59:55 GMT-0700 (PDT))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.2\",\n \"sdkVersion\" : \"11.2\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.2\",\n \"ip\" : \"10.0.0.8\"\n },\n \"build\" : {\n \"time\" : \"Mar 19 2018 22:28:31\"\n }\n },\n \"sessionId\" : \"3C1E0E1D-DA37-45B6-BE63-9CCD9034DC41\",\n \"status\" : 0\n}"
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"host.exp.Exponent","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"363B720F-AB04-434F-BD7B-C0715925BD16","capabilities":{"device":"iphone","browserName":"Expo","sdkVersion":"11.2","CFBundleIdentifier":"host.exp.Exponent"}},"sessionId":"363B720F-AB04-434F-BD7B-C0715925BD16","status":0}
[debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1521608400809 (22:00:00 GMT-0700 (PDT))
[debug] [BaseDriver] Event 'wdaStarted' logged at 1521608400810 (22:00:00 GMT-0700 (PDT))
[XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior.
[debug] [BaseDriver] Event 'orientationSet' logged at 1521608400811 (22:00:00 GMT-0700 (PDT))
[Appium] New XCUITestDriver session created successfully, session fc47841c-0721-409c-9214-c44428cc9cec added to master session list
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1521608400813 (22:00:00 GMT-0700 (PDT))
[debug] [MJSONWP] Responding to client with driver.createSession() result: {"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"platformName":"iOS","deviceName":"iPhone Simulator","xcodeOrgId":"58HKZG8YVV","xcodeSigningId":"iPhone Developer","updatedWDABundleId":"com.trinet.WebDriverAgentRunner","automationName":"XCUITest","app":"/Users/alin/.expo/ios-simulator-app-cache/Exponent-2.3.0.app","udid":"E726D50D-28D3-43BE-8A8B-902A950FD815"}
[HTTP] <-- POST /wd/hub/session 200 31896 ms - 582
[HTTP] --> POST /wd/hub/session/fc47841c-0721-409c-9214-c44428cc9cec/url {"url":{"_40":0,"_65":0,"_55":null,"_72":null}}
[MJSONWP] Encountered internal error running command: TypeError: url.match is not a function
at Object.setUrl (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/appium-base-driver/lib/mjsonwp/validators.js:17:22)
at asyncHandler$ (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/appium-base-driver/lib/mjsonwp/mjsonwp.js:271:32)
at tryCatch (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at invoke (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at enqueueResult (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:185:17)
at new Promise (<anonymous>)
at new F (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/core-js/library/modules/$.export.js:30:36)
at AsyncIterator.enqueue (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:184:12)
at AsyncIterator.prototype.(anonymous function) [as next] (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at Object.runtime.async (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:209:12)
at asyncHandler (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/appium-base-driver/build/lib/mjsonwp/mjsonwp.js:349:32)
at /Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/appium-base-driver/lib/mjsonwp/mjsonwp.js:356:15
at Layer.handle [as handle_request] (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
at /Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/express/lib/router/index.js:281:22
at param (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/express/lib/router/index.js:354:14)
at param (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/express/lib/router/index.js:365:14)
at Function.process_params (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/express/lib/router/index.js:410:3)
at next (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/express/lib/router/index.js:275:10)
at logger (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/morgan/index.js:144:5)
at Layer.handle [as handle_request] (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/express/lib/router/index.js:317:13)
at /Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/express/lib/router/index.js:335:12)
at next (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/express/lib/router/index.js:275:10)
at /Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/body-parser/lib/read.js:130:5
at invokeCallback (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/raw-body/index.js:224:16)
at done (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/raw-body/index.js:213:7)
at IncomingMessage.onEnd (/Users/alin/.nvm/versions/node/v9.8.0/lib/node_modules/appium/node_modules/raw-body/index.js:273:7)
at IncomingMessage.emit (events.js:180:13)
at endReadableNT (_stream_readable.js:1101:12)
at process._tickCallback (internal/process/next_tick.js:114:19)
[HTTP] <-- POST /wd/hub/session/fc47841c-0721-409c-9214-c44428cc9cec/url 500 29 ms - 198
[HTTP] --> POST /wd/hub/session/fc47841c-0721-409c-9214-c44428cc9cec/elements {"using":"accessibility id","value":"testview"}
[debug] [MJSONWP] Calling AppiumDriver.findElements() with args: ["accessibility id","testview","fc47841c-0721-409c-9214-c44428cc9cec"]
[debug] [XCUITest] Executing command 'findElements'
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8100/session/363B720F-AB04-434F-BD7B-C0715925BD16/elements] with body: {"using":"accessibility id","value":"testview"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":[],"sessionId":"363B720F-AB04-434F-BD7B-C0715925BD16","status":0}
[debug] [MJSONWP] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/fc47841c-0721-409c-9214-c44428cc9cec/elements 200 166 ms - 74
[HTTP] --> POST /wd/hub/session/fc47841c-0721-409c-9214-c44428cc9cec/elements {"using":"accessibility id","value":"button"}
[debug] [MJSONWP] Calling AppiumDriver.findElements() with args: ["accessibility id","button","fc47841c-0721-409c-9214-c44428cc9cec"]
[debug] [XCUITest] Executing command 'findElements'
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8100/session/363B720F-AB04-434F-BD7B-C0715925BD16/elements] with body: {"using":"accessibility id","value":"button"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":[],"sessionId":"363B720F-AB04-434F-BD7B-C0715925BD16","status":0}
[debug] [MJSONWP] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/fc47841c-0721-409c-9214-c44428cc9cec/elements 200 139 ms - 74
[HTTP] --> POST /wd/hub/session/fc47841c-0721-409c-9214-c44428cc9cec/element {"using":"accessibility id","value":"textinput"}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: ["accessibility id","textinput","fc47841c-0721-409c-9214-c44428cc9cec"]
[debug] [XCUITest] Executing command 'findElement'
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/363B720F-AB04-434F-BD7B-C0715925BD16/element] with body: {"using":"accessibility id","value":"textinput"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"accessibility id","value":"textinput","description":"unable to find an element"},"sessionId":"363B720F-AB04-434F-BD7B-C0715925BD16","status":7}
[HTTP] <-- POST /wd/hub/session/fc47841c-0721-409c-9214-c44428cc9cec/element 500 136 ms - 164
^C[Appium] Received SIGINT - shutting down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment