I am trying to launch a application and get the page source
but as soon as the application is launch the appium is null response for any action after launch
appium version - 1.11.1
testing on iOS
Below is the terminal logs
[debug] [XCUITest] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=de7eb89db7d35c2b53d5ac6749c844c21227286f IPHONEOS_DEPLOYMENT_TARGET=11.1’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[debug] [XCUITest] Output from xcodebuild will not be logged. To change this, use ‘showXcodeLog’ desired capability
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {“errno”:“ECONNRESET”,“code”:“ECONNRESET”,“syscall”:“read”}
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {“errno”:“ECONNRESET”,“code”:“ECONNRESET”,“syscall”:“read”}
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {“errno”:“ECONNRESET”,“code”:“ECONNRESET”,“syscall”:“read”}
[debug] [XCUITest] Log file for xcodebuild test: /Users/gandalf/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/Test-WebDriverAgentRunner-2019.05.03_16-08-44-+0530.xcresult/2_Test/Diagnostics/WebDriverAgentRunner-AB94FFBF-367E-43D3-80FE-6D2048C7EFAB/WebDriverAgentRunner-8FFF3538-CFC6-4756-94DF-A7658E084625/Session-WebDriverAgentRunner-2019-05-03_160845-LpzLd0.log
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {“errno”:“ECONNRESET”,“code”:“ECONNRESET”,“syscall”:“read”}
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {“errno”:“ECONNRESET”,“code”:“ECONNRESET”,“syscall”:“read”}
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {“errno”:“ECONNRESET”,“code”:“ECONNRESET”,“syscall”:“read”}
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {“errno”:“ECONNRESET”,“code”:“ECONNRESET”,“syscall”:“read”}
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {“errno”:“ECONNRESET”,“code”:“ECONNRESET”,“syscall”:“read”}
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {“errno”:“ECONNRESET”,“code”:“ECONNRESET”,“syscall”:“read”}
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {“errno”:“ECONNRESET”,“code”:“ECONNRESET”,“syscall”:“read”}
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {“errno”:“ECONNRESET”,“code”:“ECONNRESET”,“syscall”:“read”}
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {“errno”:“ECONNRESET”,“code”:“ECONNRESET”,“syscall”:“read”}
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [WD Proxy] Got response with status 200: “{\n “value” : {\n “state” : “success”,\n “os” : {\n “name” : “iOS”,\n “version” : “11.4.1”,\n “sdkVersion” : “12.0”\n },\n “ios” : {\n “simulatorVersion” : “11.4.1”,\n “ip” : “192.168.1.229”\n },\n “build” : {\n “upgradedAt” : “1556877674678”,\n “time” : “May 3 2019 15:33:50”,\n “productBundleIdentifier” : “com.facebook.WebDriverAgentRunner”\n }\n },\n “sessionId” : “44D81DF4-7D82-4A33-B4DD-23C0BFA0D1D3”,\n “status” : 0\n}”
[debug] [XCUITest] WebDriverAgent information:
[debug] [XCUITest] {
[debug] [XCUITest] “state”: “success”,
[debug] [XCUITest] “os”: {
[debug] [XCUITest] “name”: “iOS”,
[debug] [XCUITest] “version”: “11.4.1”,
[debug] [XCUITest] “sdkVersion”: “12.0”
[debug] [XCUITest] },
[debug] [XCUITest] “ios”: {
[debug] [XCUITest] “simulatorVersion”: “11.4.1”,
[debug] [XCUITest] “ip”: “192.168.1.229”
[debug] [XCUITest] },
[debug] [XCUITest] “build”: {
[debug] [XCUITest] “upgradedAt”: “1556877674678”,
[debug] [XCUITest] “time”: “May 3 2019 15:33:50”,
[debug] [XCUITest] “productBundleIdentifier”: “com.facebook.WebDriverAgentRunner”
[debug] [XCUITest] }
[debug] [XCUITest] }
[debug] [XCUITest] WebDriverAgent successfully started after 13838ms
[debug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1556879935154 (16:08:55 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched ‘/session’ to command name ‘createSession’
[debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.yourcompany.Virtual-Office”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true,“defaultAlertAction”:“accept”}}
[debug] [WD Proxy] Got response with status 200: {“value”:{“sessionId”:“72FFD833-FD7B-4E64-9530-60BBA5B5EA82”,“capabilities”:{“device”:“iphone”,“browserName”:“Virtual Office”,“sdkVersion”:“11.4.1”,“CFBundleIdentifier”:“com.yourcompany.Virtual-Office”}},“sessionId”:“72FFD833-FD7B-4E64-9530-60BBA5B5EA82”,“status”:0}
[debug] [BaseDriver] Event ‘wdaSessionStarted’ logged at 1556879945728 (16:09:05 GMT+0530 (India Standard Time))
[debug] [BaseDriver] Event ‘wdaStarted’ logged at 1556879945728 (16:09:05 GMT+0530 (India Standard Time))
[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 1556879945729 (16:09:05 GMT+0530 (India Standard Time))
[debug] [BaseDriver] Event ‘iwdpStarting’ logged at 1556879945729 (16:09:05 GMT+0530 (India Standard Time))
[debug] [iOS] Starting ios_webkit_debug_proxy at port 27753 on device de7eb89db7d35c2b53d5ac6749c844c21227286f
[debug] [BaseDriver] Event ‘iwdpStarted’ logged at 1556879945746 (16:09:05 GMT+0530 (India Standard Time))
[debug] [XCUITest] Started ios_webkit_debug proxy server at: http://localhost:27753
[Appium] New XCUITestDriver session created successfully, session 618b02ab-0021-4a8d-9b3f-c515f0ad6984 added to master session list
[debug] [BaseDriver] Event ‘newSessionStarted’ logged at 1556879945748 (16:09:05 GMT+0530 (India Standard Time))
[debug] [W3C (618b02ab)] Cached the protocol value ‘W3C’ for the new session 618b02ab-0021-4a8d-9b3f-c515f0ad6984
[debug] [W3C (618b02ab)] Responding to client with driver.createSession() result: {“capabilities”:{“webStorageEnabled”:false,“locationContextEnabled”:false,“browserName”:"",“platform”:“MAC”,“javascriptEnabled”:true,“databaseEnabled”:false,“takesScreenshot”:true,“networkConnectionEnabled”:false,“platformName”:“ios”,“appiumVersion”:“1.11.1”,“autoAcceptAlerts”:true,“autoDismissAlerts”:false,“autoWebview”:false,“automationName”:“XCUITest”,“bundleId”:“com.yourcompany.Virtual-Office”,“deviceName”:“iPhone 6”,“platformVersion”:“11.1.2”,“startIWDP”:true,“udid”:“de7eb89db7d35c2b53d5ac6749c844c21227286f”,“useNewWDA”:true}}
[HTTP] <-- POST /wd/hub/session 200 31942 ms - 598
[HTTP]
[IWDP] Unable to bind de7eb89db7d35c2b53d5ac6749c844c21227286f on port 27753-27753
[HTTP] --> GET /wd/hub/session/618b02ab-0021-4a8d-9b3f-c515f0ad6984
[HTTP] {}
[debug] [W3C (618b02ab)] Calling AppiumDriver.getSession() with args: [“618b02ab-0021-4a8d-9b3f-c515f0ad6984”]
[debug] [XCUITest] Executing command ‘getSession’
[debug] [WD Proxy] Matched ‘/’ to command name ‘getSession’
[debug] [WD Proxy] Proxying [GET /] to [GET http://localhost:8100/session/72FFD833-FD7B-4E64-9530-60BBA5B5EA82] with no body
[debug] [WD Proxy] Got response with status 200: “{\n “value” : {\n “sessionId” : “72FFD833-FD7B-4E64-9530-60BBA5B5EA82”,\n “capabilities” : {\n “device” : “iphone”,\n “browserName” : “Virtual Office”,\n “sdkVersion” : “11.4.1”,\n “CFBundleIdentifier” : “com.yourcompany.Virtual-Office”\n }\n },\n “sessionId” : “72FFD833-FD7B-4E64-9530-60BBA5B5EA82”,\n “status” : 0\n}”
[debug] [WD Proxy] Proxying [GET /wda/screen] to [GET http://localhost:8100/session/72FFD833-FD7B-4E64-9530-60BBA5B5EA82/wda/screen] with no body
[debug] [XCUITest] Connection to WDA timed out
[debug] [iProxy] recv failed: Operation not permitted
[debug] [XCUITest] Connection to WDA timed out
[debug] [iProxy] recv failed: Operation not permitted
[debug] [WD Proxy] Got response with status 200: “{\n “value” : {\n “statusBarSize” : {\n “width” : 375,\n “height” : 20\n },\n “scale” : 2\n },\n “sessionId” : “72FFD833-FD7B-4E64-9530-60BBA5B5EA82”,\n “status” : 0\n}”
[debug] [WD Proxy] Proxying [GET /window/size] to [GET http://localhost:8100/session/72FFD833-FD7B-4E64-9530-60BBA5B5EA82/window/size] with no body
[debug] [WD Proxy] Got response with status 200: “{\n “value” : {\n “width” : 375,\n “height” : 667\n },\n “sessionId” : “72FFD833-FD7B-4E64-9530-60BBA5B5EA82”,\n “status” : 0\n}”
[XCUITest] Merging WDA caps over Appium caps for session detail response
[debug] [XCUITest] Connection to WDA timed out
[debug] [iProxy] recv failed: Operation not permitted
[debug] [W3C (618b02ab)] Responding to client with driver.getSession() result: {“udid”:“de7eb89db7d35c2b53d5ac6749c844c21227286f”,“platformName”:“ios”,“appiumVersion”:“1.11.1”,“autoAcceptAlerts”:true,“autoDismissAlerts”:false,“autoWebview”:false,“automationName”:“XCUITest”,“bundleId”:“com.yourcompany.Virtual-Office”,“deviceName”:“iPhone 6”,“platformVersion”:“11.1.2”,“startIWDP”:true,“useNewWDA”:true,“device”:“iphone”,“browserName”:“Virtual Office”,“sdkVersion”:“11.4.1”,“CFBundleIdentifier”:“com.yourcompany.Virtual-Office”,“pixelRatio”:2,“statBarHeight”:20,“viewportRect”:{“left”:0,“top”:40,“width”:750,“height”:1294}}
[HTTP] <-- GET /wd/hub/session/618b02ab-0021-4a8d-9b3f-c515f0ad6984 200 20617 ms - 554
[HTTP]
[HTTP] --> GET /wd/hub/session/618b02ab-0021-4a8d-9b3f-c515f0ad6984
[HTTP] {}
[debug] [W3C (618b02ab)] Calling AppiumDriver.getSession() with args: [“618b02ab-0021-4a8d-9b3f-c515f0ad6984”]
[debug] [XCUITest] Executing command ‘getSession’
[XCUITest] Merging WDA caps over Appium caps for session detail response
[debug] [W3C (618b02ab)] Responding to client with driver.getSession() result: {“udid”:“de7eb89db7d35c2b53d5ac6749c844c21227286f”,“platformName”:“ios”,“appiumVersion”:“1.11.1”,“autoAcceptAlerts”:true,“autoDismissAlerts”:false,“autoWebview”:false,“automationName”:“XCUITest”,“bundleId”:“com.yourcompany.Virtual-Office”,“deviceName”:“iPhone 6”,“platformVersion”:“11.1.2”,“startIWDP”:true,“useNewWDA”:true,“device”:“iphone”,“browserName”:“Virtual Office”,“sdkVersion”:“11.4.1”,“CFBundleIdentifier”:“com.yourcompany.Virtual-Office”,“pixelRatio”:2,“statBarHeight”:20,“viewportRect”:{“left”:0,“top”:40,“width”:750,“height”:1294}}
[HTTP] <-- GET /wd/hub/session/618b02ab-0021-4a8d-9b3f-c515f0ad6984 200 3 ms - 554
[HTTP]
[HTTP] --> GET /wd/hub/session/618b02ab-0021-4a8d-9b3f-c515f0ad6984/source
[HTTP] {}
[debug] [W3C (618b02ab)] Calling AppiumDriver.getPageSource() with args: [“618b02ab-0021-4a8d-9b3f-c515f0ad6984”]
[debug] [XCUITest] Executing command ‘getPageSource’
[debug] [WD Proxy] Matched ‘/source’ to command name ‘getPageSource’
[debug] [WD Proxy] Proxying [GET /source] to [GET http://localhost:8100/session/72FFD833-FD7B-4E64-9530-60BBA5B5EA82/source] with no body
[HTTP] <-- GET /wd/hub/session/618b02ab-0021-4a8d-9b3f-c515f0ad6984/source - - ms - -
[HTTP]
[HTTP] --> GET /wd/hub/session/618b02ab-0021-4a8d-9b3f-c515f0ad6984/source
[HTTP] {}
[debug] [W3C (618b02ab)] Calling AppiumDriver.getPageSource() with args: [“618b02ab-0021-4a8d-9b3f-c515f0ad6984”]
[debug] [XCUITest] Executing command ‘getPageSource’
[debug] [WD Proxy] Got response with status 200: “{\n “value” : “<?xml version=\“1.0\” encoding=\“UTF-8\”?>\n<XCUIElementTypeOther type=\“XCUIElementTypeOther\” enabled=\“true\” visible=\“false\” x=\“inf\” y=\“inf\” width=\“0\” height=\“0\”\/>\n”,\n “sessionId” : “72FFD833-FD7B-4E64-9530-60BBA5B5EA82”,\n “status” : 0\n}”
[debug] [XCUITest] Connection to WDA timed out
[debug] [iProxy] recv failed: Operation not permitted
[debug] [WD Proxy] Matched ‘/source’ to command name ‘getPageSource’
[debug] [WD Proxy] Proxying [GET /source] to [GET http://localhost:8100/session/72FFD833-FD7B-4E64-9530-60BBA5B5EA82/source] with no body
[debug] [W3C (618b02ab)] Responding to client with driver.getPageSource() result: “<?xml version=“1.0” encoding=“UTF-8”?><AppiumAUT><XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“false” x=“inf” y=“inf” width=“0” height=“0”/></AppiumAUT>”
[BaseDriver] Shutting down because we waited 60 seconds for a command
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 82517)
[Appium] Closing session, cause was ‘New Command Timeout of 60 seconds expired. Try customizing the timeout using the ‘newCommandTimeout’ desired capability’
[Appium] Removing session 618b02ab-0021-4a8d-9b3f-c515f0ad6984 from our master session list
[WD Proxy] Got an unexpected response: {“code”:“ECONNRESET”}
[debug] [XCUITest] iproxy exited with code ‘null’
[debug] [W3C (618b02ab)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: socket hang up
[debug] [W3C (618b02ab)] at JWProxy.command (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:236:13)
[HTTP] <-- GET /wd/hub/session/618b02ab-0021-4a8d-9b3f-c515f0ad6984/source 500 91338 ms - 530
[HTTP]
[XCUITest] Shutting down xcodebuild process (pid 82518)
[XCUITest] xcodebuild exited with code ‘null’ and signal ‘SIGTERM’
[debug] [XCUITest] Not clearing log files. Use clearSystemFiles
capability to turn on.
[debug] [iOSLog] Stopping iOS log capture