[Appium] Welcome to Appium v1.8.2-beta (REV b4e68a01f9206f9197975de58d1dbb15dc1e8dcd) [Appium] Non-default server args: [Appium] address: 127.0.0.1 [Appium] Appium REST http interface listener started on 127.0.0.1:4723 [HTTP] --> POST /wd/hub/session [HTTP] {"capabilities":{"alwaysMatch":{"browserName":"Safari","platformName":"iOS"},"firstMatch":[{}]},"desiredCapabilities":{"deviceName":"iOS","wdaConnectionTimeout":60000,"udid":"myudid","platformName":"iOS","automationName":"XCUITest","startIWDP":true,"usePrebuiltWDA":true,"clearSystemFiles":true,"browserName":"Safari","wdaLaunchTimeout":60000,"webkitResponseTimeout":60000,"newCommandTimeout":0,"commandTimeouts":60000,"preventWDAAttachments":true,"showXcodeLog":true}} [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"iOS","wdaConnectionTimeout":60000,"udid":"myudid","platformName":"iOS","automationName":"XCUITest","startIWDP":true,"usePrebuiltWDA":true,"clearSystemFiles":true,"browserName":"Safari","wdaLaunchTimeout":60000,"webkitResponseTimeout":60000,"newCommandTimeout":0,"commandTimeouts":60000,"preventWDAAttachments":true,"showXcodeLog":true},null,{"alwaysMatch":{"browserName":"Safari","platformName":"iOS"},"firstMatch":[{}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1544651368424 (13:49:28 GMT-0800 (PST)) [Appium] Could not parse W3C capabilities: 'deviceName' can't be blank. Falling back to JSONWP protocol. [Appium] The following capabilities were provided in the JSONWP desired capabilities that are missing in W3C capabilities: ["deviceName","wdaConnectionTimeout","udid","platformName","automationName","startIWDP","usePrebuiltWDA","clearSystemFiles","browserName","wdaLaunchTimeout","webkitResponseTimeout","newCommandTimeout","commandTimeouts","preventWDAAttachments","showXcodeLog"]. Falling back to JSONWP protocol. [Appium] Creating new XCUITestDriver (v2.87.0) session [Appium] Capabilities: [Appium] deviceName: iOS [Appium] wdaConnectionTimeout: 60000 [Appium] udid: myudid [Appium] platformName: iOS [Appium] automationName: XCUITest [Appium] startIWDP: true [Appium] usePrebuiltWDA: true [Appium] clearSystemFiles: true [Appium] browserName: Safari [Appium] wdaLaunchTimeout: 60000 [Appium] webkitResponseTimeout: 60000 [Appium] newCommandTimeout: 0 [Appium] commandTimeouts: 60000 [Appium] preventWDAAttachments: true [Appium] showXcodeLog: true [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {"deviceName":"iOS","wdaCon... [BaseDriver] Session created with session id: 6ad61e58-7a7e-48ca-8825-645e32494c45 [debug] [XCUITest] Current user: 'local' [debug] [XCUITest] Xcode version set to '10.0' [debug] [XCUITest] iOS SDK Version set to '12.0' [debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1544651368614 (13:49:28 GMT-0800 (PST)) [debug] [XCUITest] Available devices: myudid [debug] [XCUITest] Creating iDevice object with udid 'myudid' [XCUITest] Determining device to run tests on: udid: 'myudid', real device: true [XCUITest] Safari test requested [debug] [BaseDriver] Event 'appConfigured' logged at 1544651368730 (13:49:28 GMT-0800 (PST)) [debug] [BaseDriver] Event 'resetStarted' logged at 1544651368731 (13:49:28 GMT-0800 (PST)) [debug] [XCUITest] Reset: running ios real device reset flow [debug] [BaseDriver] Event 'resetComplete' logged at 1544651368732 (13:49:28 GMT-0800 (PST)) [debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog [debug] [iOSLog] Starting iOS device log capture with: 'idevicesyslog' [debug] [XCUITest] Crash reports root '/Users/local/Library/Logs/CrashReporter/MobileDevice/iPad' does not exist. Got nothing to gather. [debug] [BaseDriver] Event 'logCaptureStarted' logged at 1544651368893 (13:49:28 GMT-0800 (PST)) [XCUITest] Setting up real device [XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent' [XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj' [debug] [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [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\" : \"12.0\",\n \"sdkVersion\" : \"12.0\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"12.0\",\n \"ip\" : \"10.0.1.3\"\n },\n \"build\" : {\n \"time\" : \"Aug 1 2018 15:25:14\"\n }\n },\n \"sessionId\" : \"5EFD64CD-5FCB-4EA8-A6B6-BC32C1D8112E\",\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 1544651369018 (13:49:29 GMT-0800 (PST)) [XCUITest] Using provided WebdriverAgent at 'http://localhost:8100/' [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1544651369019 (13:49:29 GMT-0800 (PST)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [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\" : \"12.0\",\n \"sdkVersion\" : \"12.0\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"12.0\",\n \"ip\" : \"10.0.1.3\"\n },\n \"build\" : {\n \"time\" : \"Aug 1 2018 15:25:14\"\n }\n },\n \"sessionId\" : \"5EFD64CD-5FCB-4EA8-A6B6-BC32C1D8112E\",\n \"status\" : 0\n}" [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [debug] [XCUITest] Failed to create WDA session. Retrying... [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1544651370268 (13:49:30 GMT-0800 (PST)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [debug] [XCUITest] Failed to create WDA session. Retrying... [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1544651371279 (13:49:31 GMT-0800 (PST)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [debug] [XCUITest] Failed to create WDA session. Retrying... [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1544651372353 (13:49:32 GMT-0800 (PST)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [debug] [XCUITest] Failed to create WDA session. Retrying... [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1544651373416 (13:49:33 GMT-0800 (PST)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [debug] [XCUITest] Failed to create WDA session. Retrying... [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1544651374494 (13:49:34 GMT-0800 (PST)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [debug] [XCUITest] Failed to create WDA session. Retrying... [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1544651375568 (13:49:35 GMT-0800 (PST)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [debug] [XCUITest] Failed to create WDA session. Retrying... [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1544651376644 (13:49:36 GMT-0800 (PST)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [debug] [XCUITest] Failed to create WDA session. Retrying... [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1544651377722 (13:49:37 GMT-0800 (PST)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [debug] [XCUITest] Failed to create WDA session. Retrying... [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1544651378802 (13:49:38 GMT-0800 (PST)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [debug] [XCUITest] Failed to create WDA session. Retrying... [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1544651379882 (13:49:39 GMT-0800 (PST)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [debug] [XCUITest] Failed to create WDA session. Retrying... [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1544651380958 (13:49:40 GMT-0800 (PST)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [debug] [XCUITest] Failed to create WDA session. Retrying... [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1544651382033 (13:49:42 GMT-0800 (PST)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [debug] [XCUITest] Failed to create WDA session. Retrying... [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1544651383109 (13:49:43 GMT-0800 (PST)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [debug] [XCUITest] Failed to create WDA session. Retrying... [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1544651384185 (13:49:44 GMT-0800 (PST)) [debug] [XCUITest] Sending createSession command to WDA [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [debug] [XCUITest] Failed to create WDA session. Retrying... [debug] [XCUITest] Unable to start WebDriverAgent session because of xcodebuild failure: "An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:8100". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. [debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying [XCUITest] Shutting down sub-processes [debug] [XCUITest] Removing WDA application from device