[Appium] Welcome to Appium v1.8.2-beta (REV f1a850606f1ac64a7809baaba49d2d0109a670fc) [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,"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,"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 1544564524553 (13:42:04 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","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] 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: c8ea1f9f-9a16-4801-8be0-30f7ed5737ff [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 1544564524752 (13:42:04 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 1544564524877 (13:42:04 GMT-0800 (PST)) [debug] [BaseDriver] Event 'resetStarted' logged at 1544564524877 (13:42:04 GMT-0800 (PST)) [debug] [XCUITest] Reset: running ios real device reset flow [debug] [BaseDriver] Event 'resetComplete' logged at 1544564524878 (13:42:04 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 1544564524994 (13:42:04 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\" : \"0F8C5553-A4E1-42B3-9D5C-8E40DB1ADE82\",\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 1544564525105 (13:42:05 GMT-0800 (PST)) [XCUITest] Using provided WebdriverAgent at 'http://localhost:8100/' [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1544564525106 (13:42:05 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\" : \"0F8C5553-A4E1-42B3-9D5C-8E40DB1ADE82\",\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.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 1544564526337 (13:42:06 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.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 1544564527366 (13:42:07 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.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 1544564528515 (13:42:08 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.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 1544564529667 (13:42:09 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.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 1544564530766 (13:42:10 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.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 1544564531821 (13:42:11 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.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 1544564532968 (13:42:12 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.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 1544564534115 (13:42:14 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.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 1544564535145 (13:42:15 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.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 1544564536297 (13:42:16 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.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 1544564537444 (13:42:17 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.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 1544564538595 (13:42:18 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.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 1544564539747 (13:42:19 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.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 1544564540787 (13:42:20 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.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