Unable to Navigate web app on safari on real iPhone device

Dear Folks

I am Trying to navigate web app on iPhone 6 (11.4.1) mobile safari but unable to do that, when I run my script on eclipse than safari browser is open in iPhone 6 and auto navigate to Appium.io website but unable to navigate on web application like (https://www.google.com).

If I try with simulator than its working perfectly, but my requirement on real iPhone device.

Environment:-
Appium v1.8.1
Mac OS 10.13.6
Xcode 9.4.1
iPhone 11.4.1

Eclipse Log:-

RemoteTestNG] detected TestNG version 6.14.2
FAILED CONFIGURATION: @BeforeClass setup
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not navigate to webview; there are none! (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 130.03 seconds
Build info: version: ‘3.12.0’, revision: ‘7c6e0b3’, time: ‘2018-05-08T14:04:26.12Z’
System info: host: ‘devendras-MacBook-Pro.local’, ip: ‘fe80:0:0:0:1482:73fb:532e:651b%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.13.6’, java.version: ‘1.8.0_171’
Driver info: driver.version: IOSDriver

Appium Terminal Log:-

devendras-MacBook-Pro:~ devendrasingh$ appium
[Appium] Welcome to Appium v1.8.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {“desiredCapabilities”:{“browserName”:“Safari”,“deviceName”:“LB iphone.M16”,“platformName”:“iOS”,“platformVersion”:“11.4.1”,“udid”:“a01f797bb6ac8f0a4942dcb7c9818e6c5a7569cf”},“capabilities”:{“desiredCapabilities”:{“browserName”:“Safari”,“deviceName”:“LB iphone.M16”,“platformName”:“iOS”,“platformVersion”:“11.4.1”,“udid”:“a01f797bb6ac8f0a4942dcb7c9818e6c5a7569cf”},“firstMatch”:[{“browserName”:“Safari”,“platformName”:“ios”}]}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“browserName”:“Safari”,“deviceName”:“LB iphone.M16”,“platformName”:“iOS”,“platformVersion”:“11.4.1”,“udid”:“a01f797bb6ac8f0a9818e6c5a7569cf”},null,{“desiredCapabilities”:{“browserName”:“Safari”,“deviceName”:“LB iphone.M16”,“platformName”:“iOS”,“platformVersion”:“11.4.1”,“udid”:“a01f797bb6ac8f0cb7c9818e6c5a7569cf”},“firstMatch”:[{“browserName”:“Safari”,“platformName”:“ios”}]}]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1532000588181 (17:13:08 GMT+0530 (IST))
[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: [“browserName”,“deviceName”,“platformName”,“platformVersion”,“udid”]. Falling back to JSONWP protocol.
[Appium] Requested iOS support with version >= 10, using ‘xcuitest’ driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.
[Appium] Creating new XCUITestDriver (v2.84.0) session
[Appium] Capabilities:
[Appium] browserName: Safari
[Appium] deviceName: LB iphone.M16
[Appium] platformName: iOS
[Appium] platformVersion: 11.4.1
[Appium] udid: a01f797bb6ac8f0a4b7c9818e6c5a7569cf
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {“browserName”:“Safari”,“de…
[BaseDriver] Session created with session id: a893f52a9e2f99f7b9
[debug] [XCUITest] Current user: ‘devendrasingh’
[debug] [XCUITest] Xcode version set to ‘9.4.1’ (tools v9.4.1.0.1.1528165917)
[debug] [XCUITest] iOS SDK Version set to ‘11.4’
[debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1532000588351 (17:13:08 GMT+0530 (IST))
[debug] [XCUITest] Available devices: a01f797bb6ac8f0a4942dcb7c9818e6c5a7569cf
[debug] [XCUITest] Creating iDevice object with udid ‘a01f797bb6acb7c9818e6c5a7569cf’
[XCUITest] Determining device to run tests on: udid: ‘a01f797bb6ac8f07c9818e6c5a7569cf’, real device: true
[XCUITest] Safari test requested
[debug] [BaseDriver] Event ‘appConfigured’ logged at 1532000588475 (17:13:08 GMT+0530 (IST))
[debug] [BaseDriver] Event ‘resetStarted’ logged at 1532000588475 (17:13:08 GMT+0530 (IST))
[debug] [XCUITest] Reset: running ios real device reset flow
[debug] [BaseDriver] Event ‘resetComplete’ logged at 1532000588476 (17:13:08 GMT+0530 (IST))
[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/devendrasingh/Library/Logs/CrashReporter/MobileDevice/LB iphone.M16’ does not exist. Got nothing to gather.
[debug] [BaseDriver] Event ‘logCaptureStarted’ logged at 1532000588697 (17:13:08 GMT+0530 (IST))
[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] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] WDA is not listening at ‘http://localhost:8100/
[debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1532000588774 (17:13:08 GMT+0530 (IST))
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[debug] [XCUITest] Killing running processes ‘xcodebuild.*a01f797bb6ac8f0a4942dcb7c9818e6c5a7569cf, iproxy 8100’ for the device a01f797bb6ac8f0a4942dcb7c9818e6c5a7569cf…
[debug] [XCUITest] ‘pgrep -nif xcodebuild.*a01f797bb6ac8f0a4942dcb7c9818e6c5a7569cf’ didn’t detect any matching processes. Return code: 1
[debug] [XCUITest] ‘pgrep -nif iproxy 8100’ didn’t detect any matching processes. Return code: 1
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[debug] [XCUITest] Using Xcode 9.4.1, so fixing WDA codebase
[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=a01f797bb6ac8f0a4942dcb7c9818e6c5a7569cf IPHONEOS_DEPLOYMENT_TARGET=11.4’ 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] [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.4.1”,\n “sdkVersion” : “11.3”\n },\n “ios” : {\n “simulatorVersion” : “11.4.1”,\n “ip” : “192.168.1.101”\n },\n “build” : {\n “time” : “Jul 17 2018 21:41:02”\n }\n },\n “sessionId” : “9A84D603-0A12-4E58-BB94-E7B3B9EFBADC”,\n “status” : 0\n}”
[debug] [XCUITest] WebDriverAgent running on ip ‘192.168.1.101’
[debug] [XCUITest] WebDriverAgent successfully started after 613ms
[debug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1532000594455 (17:13:14 GMT+0530 (IST))
[debug] [XCUITest] Sending createSession command to WDA
[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] Log file for xcodebuild test: /var/folders/pr/tfsb52ln001c9yvv5hvx7hb00000gn/T/com.apple.dt.XCTest/IDETestRunSession-D7FD6E48-7763-4C2E-8DAE-678C4FE2FC5D/WebDriverAgentRunner-FE75B7A1-1669-4F7C-952A-64A024A2CC22/Session-WebDriverAgentRunner-2018-07-19_171325-1MUpCp.log
[debug] [XCUITest] Failed to create WDA session. Retrying…
[debug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1532000607904 (17:13:27 GMT+0530 (IST))
[debug] [XCUITest] Sending createSession command to WDA
[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 1532000608910 (17:13:28 GMT+0530 (IST))
[debug] [XCUITest] Sending createSession command to WDA
{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[debug] [XCUITest] Failed to create WDA session. Retrying…
[debug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1532000620019 (17:13:40 GMT+0530 (IST))
[debug] [XCUITest] Sending createSession command to WDA
[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] [JSONWP Proxy] Got response with status 200: {“value”:{“sessionId”:“8AC9A1EA-C2B1-41A9-8480-A8550E020C37”,“capabilities”:{“device”:“iphone”,“browserName”:“Safari”,“sdkVersion”:“11.4.1”,“CFBundleIdentifier”:“com.apple.mobilesafari”}},“sessionId”:“8AC9A1EA-C2B1-41A9-8480-A8550E020C37”,“status”:0}
[debug] [BaseDriver] Event ‘wdaSessionStarted’ logged at 1532000624095 (17:13:44 GMT+0530 (IST))
[debug] [BaseDriver] Event ‘wdaStarted’ logged at 1532000624096 (17:13:44 GMT+0530 (IST))
[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 1532000624096 (17:13:44 GMT+0530 (IST))
[debug] [XCUITest] Waiting for initial webview
[debug] [iOS] Waiting for 3000 ms before navigating to view.
[debug] [iOS] Navigating to most recently opened webview
[debug] [iOS] Retrieving contexts and views
[debug] [iOS] Retrieving contexts and views
[debug] [iOS] Selecting by url: true (expected url: ‘http://appium.io’)
[debug] [RemoteDebugger] Getting WebKitRemoteDebugger pageArray: localhost, 27753
[debug] [RemoteDebugger] Sending request to: http://localhost:27753/json
[iOS] Attempted to get a list of webview contexts but could not connect to ios-webkit-debug-proxy. If you expect to find webviews, please ensure that the proxy is running and accessible
[debug] [iOS] No web frames found.
[debug] [iOS] Retrieving contexts and views
[debug] [iOS] Selecting by url: true (expected url: ‘http://appium.io’)
[debug] [RemoteDebugger] Getting WebKitRemoteDebugger pageArray: localhost, 27753
[debug] [RemoteDebugger] Sending request to: http://localhost:27753/json
[iOS] Attempted to get a list of webview contexts but could not connect to ios-webkit-debug-proxy. If you expect to find webviews, please ensure that the proxy is running and accessible
[debug] [iOS] No web frames found.
[XCUITest] Error: Could not navigate to webview; there are none!
[XCUITest] at XCUITestDriver.spinHandles$ (/usr/local/lib/node_modules/appium/node_modules/appium-ios-driver/lib/commands/context.js:522:13)
[XCUITest] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[XCUITest] at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
[XCUITest] at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
[XCUITest] at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[XCUITest] at
[debug] [JSONWP Proxy] Proxying [DELETE /session/a893f52a-caad-41e3-80e9-ad9e2f99f7b9] to [DELETE http://localhost:8100/session/8AC9A1EA-C2B1-41A9-8480-A8550E020C37] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{\n “value” : {\n\n },\n “sessionId” : “CC484EC2-7496-4591-8A0F-F433DDAFA90F”,\n “status” : 0\n}”
[debug] [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
[debug] [iOSLog] Stopping iOS log capture
[debug] [BaseDriver] Event ‘newSessionStarted’ logged at 1532000718121 (17:15:18 GMT+0530 (IST))
[MJSONWP] Encountered internal error running command: Error: Could not navigate to webview; there are none!
[MJSONWP] at XCUITestDriver.spinHandles$ (/usr/local/lib/node_modules/appium/node_modules/appium-ios-driver/lib/commands/context.js:522:13)
[MJSONWP] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[MJSONWP] at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
[MJSONWP] at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
[MJSONWP] at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[MJSONWP] at
[HTTP] <-- POST /wd/hub/session 500 129948 ms - 183
[HTTP]
[debug] [XCUITest] Connection to WDA timed out
[debug] [iProxy] recv failed: Operation not permitted

————

If I run webkit debug proxy then (command to run webkit debug proxy:- sudo ios_webkit_debug_proxy -c a01f7818e6c5a7569cf:27753 -d)

Appium Terminal Log:-

[Appium] Welcome to Appium v1.8.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {“desiredCapabilities”:{“browserName”:“Safari”,“deviceName”:“LB iphone.M16”,“platformName”:“iOS”,“platformVersion”:“11.4.1”,“udid”:“a01f797bb6ac8f0a4942dcb7c9818e6c5a7569cf”},“capabilities”:{“desiredCapabilities”:{“browserName”:“Safari”,“deviceName”:“LB iphone.M16”,“platformName”:“iOS”,“platformVersion”:“11.4.1”,“udid”:“a01f797bb6ac8f0a4942dcb7c9818e6c5a7569cf”},“firstMatch”:[{“browserName”:“Safari”,“platformName”:“ios”}]}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“browserName”:“Safari”,“deviceName”:“LB iphone.M16”,“platformName”:“iOS”,“platformVersion”:“11.4.1”,“udid”:“a01f7818e6c5a7569cf”},null,{“desiredCapabilities”:{“browserName”:“Safari”,“deviceName”:“LB iphone.M16”,“platformName”:“iOS”,“platformVersion”:“11.4.1”,“udid”:“a01f797bb65a7569cf”},“firstMatch”:[{“browserName”:“Safari”,“platformName”:“ios”}]}]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1532001472842 (17:27:52 GMT+0530 (IST))
[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: [“browserName”,“deviceName”,“platformName”,“platformVersion”,“udid”]. Falling back to JSONWP protocol.
[Appium] Requested iOS support with version >= 10, using ‘xcuitest’ driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.
[Appium] Creating new XCUITestDriver (v2.84.0) session
[Appium] Capabilities:
[Appium] browserName: Safari
[Appium] deviceName: LB iphone.M16
[Appium] platformName: iOS
[Appium] platformVersion: 11.4.1
[Appium] udid: a01f797bb6ac8f0a4942dcb7c9818e6c5a7569cf
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {“browserName”:“Safari”,“de…
[BaseDriver] Session created with session id: f7f4ef6a-0634-408c-8336-86f89d9c5a96
[debug] [XCUITest] Current user: ‘devendrasingh’
[debug] [XCUITest] Xcode version set to ‘9.4.1’ (tools v9.4.1.0.1.1528165917)
[debug] [XCUITest] iOS SDK Version set to ‘11.4’
[debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1532001473036 (17:27:53 GMT+0530 (IST))
[debug] [XCUITest] Available devices: a01f797bb6ac8f0a4942dcb7c9818e6c5a7569cf
[debug] [XCUITest] Creating iDevice object with udid ‘a01f797bb6ac8f0a4942dcb7c9818e6c5a7569cf’
[XCUITest] Determining device to run tests on: udid: ‘a01f797bb6ac8f0a4942dcb7c9818e6c5a7569cf’, real device: true
[XCUITest] Safari test requested
[debug] [BaseDriver] Event ‘appConfigured’ logged at 1532001473210 (17:27:53 GMT+0530 (IST))
[debug] [BaseDriver] Event ‘resetStarted’ logged at 1532001473210 (17:27:53 GMT+0530 (IST))
[debug] [XCUITest] Reset: running ios real device reset flow
[debug] [BaseDriver] Event ‘resetComplete’ logged at 1532001473211 (17:27:53 GMT+0530 (IST))
[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/devendrasingh/Library/Logs/CrashReporter/MobileDevice/LB iphone.M16’ does not exist. Got nothing to gather.
[debug] [BaseDriver] Event ‘logCaptureStarted’ logged at 1532001473495 (17:27:53 GMT+0530 (IST))
[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] 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.4.1”,\n “sdkVersion” : “11.3”\n },\n “ios” : {\n “simulatorVersion” : “11.4.1”,\n “ip” : “192.168.1.101”\n },\n “build” : {\n “time” : “Jul 19 2018 17:13:17”\n }\n },\n “sessionId” : “CC484EC2-7496-4591-8A0F-F433DDAFA90F”,\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 1532001473592 (17:27:53 GMT+0530 (IST))
[XCUITest] Using provided WebdriverAgent at ‘http://localhost:8100/
[debug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1532001473595 (17:27:53 GMT+0530 (IST))
[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.4.1”,\n “sdkVersion” : “11.3”\n },\n “ios” : {\n “simulatorVersion” : “11.4.1”,\n “ip” : “192.168.1.101”\n },\n “build” : {\n “time” : “Jul 19 2018 17:13:17”\n }\n },\n “sessionId” : “CC484EC2-7496-4591-8A0F-F433DDAFA90F”,\n “status” : 0\n}”
[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] [JSONWP Proxy] Got response with status 200: {“value”:{“sessionId”:“7040CA1E-7E49-4E95-9C63-91EAFAF534DF”,“capabilities”:{“device”:“iphone”,“browserName”:“Safari”,“sdkVersion”:“11.4.1”,“CFBundleIdentifier”:“com.apple.mobilesafari”}},“sessionId”:“7040CA1E-7E49-4E95-9C63-91EAFAF534DF”,“status”:0}
[debug] [BaseDriver] Event ‘wdaSessionStarted’ logged at 1532001477092 (17:27:57 GMT+0530 (IST))
[debug] [BaseDriver] Event ‘wdaStarted’ logged at 1532001477092 (17:27:57 GMT+0530 (IST))
[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 1532001477093 (17:27:57 GMT+0530 (IST))
[debug] [XCUITest] Waiting for initial webview
[debug] [iOS] Waiting for 3000 ms before navigating to view.
[debug] [iOS] Navigating to most recently opened webview
[debug] [iOS] Retrieving contexts and views
[debug] [iOS] Selecting by url: true (expected url: ‘http://appium.io’)
[debug] [RemoteDebugger] Getting WebKitRemoteDebugger pageArray: localhost, 27753
[debug] [RemoteDebugger] Sending request to: http://localhost:27753/json
[debug] [RemoteDebugger] Page element JSON: [{“devtoolsFrontendUrl”:"/devtools/devtools.html?ws=localhost:27753/devtools/page/1",“faviconUrl”:"",“thumbnailUrl”:"/thumb/http://appium.io/",“title”:"Appium: Mobile App Automation Made Awesome.",“url”:“http://appium.io/",“webSocketDebuggerUrl”:“ws://localhost:27753/devtools/page/1”,“appId”:"PID:433”}]
[debug] [iOS] Retrieving contexts and views
[debug] [iOS] Selecting by url: true (expected url: ‘http://appium.io’)
[debug] [RemoteDebugger] Getting WebKitRemoteDebugger pageArray: localhost, 27753
[debug] [RemoteDebugger] Sending request to: http://localhost:27753/json
[debug] [RemoteDebugger] Page element JSON: [{“devtoolsFrontendUrl”:"/devtools/devtools.html?ws=localhost:27753/devtools/page/1",“faviconUrl”:"",“thumbnailUrl”:"/thumb/http://appium.io/",“title”:"Appium: Mobile App Automation Made Awesome.",“url”:“http://appium.io/",“webSocketDebuggerUrl”:“ws://localhost:27753/devtools/page/1”,“appId”:"PID:433”}]
[debug] [iOS] Picking webview ‘WEBVIEW_1’
[debug] [iOS] Attempting to set context to ‘WEBVIEW_1’
[debug] [RemoteDebugger] WebKit debugger web socket connected to url: ws://localhost:27753/devtools/page/1
[debug] [RemoteDebugger] Starting to listen for JavaScript console
[debug] [RemoteDebugger] Sending WebKit data: {“method”:“Console.enable”,“params”:{“objectGroup”:“console”,“includeCommandLineAPI”:true,“doNotPauseOnExceptionsAndMuteConsole”:true}}
[debug] [RemoteDebugger] Webkit response timeout: 5000
[debug] [RemoteDebugger] Receiving WebKit data: ‘{“result”:{},“id”:1}’
[debug] [RemoteDebugger] Found handler for message ‘1’
[debug] [RemoteDebugger] WebKit debugger got a message for ‘Console.enable’ and have no handler, doing nothing.
[XCUITest] TimeoutError: operation timed out
[XCUITest] at afterTimeout (/usr/local/lib/node_modules/appium/node_modules/bluebird/js/release/timers.js:46:19)
[XCUITest] at Timeout.timeoutTimeout [as _onTimeout] (/usr/local/lib/node_modules/appium/node_modules/bluebird/js/release/timers.js:76:13)
[XCUITest] at ontimeout (timers.js:498:11)
[XCUITest] at tryOnTimeout (timers.js:323:5)
[XCUITest] at Timer.listOnTimeout (timers.js:290:5)
[debug] [JSONWP Proxy] Proxying [DELETE /session/f7f4ef6a-0634-408c-8336-86f89d9c5a96] to [DELETE http://localhost:8100/session/7040CA1E-7E49-4E95-9C63-91EAFAF534DF] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{\n “value” : {\n\n },\n “sessionId” : “75CB69ED-D8BB-42E3-8B09-20316CE7EFC6”,\n “status” : 0\n}”
[debug] [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
[debug] [XCUITest] In a web session. Removing remote debugger
[debug] [RemoteDebugger] Disconnecting from WebKit remote debugger
[debug] [iOSLog] Stopping iOS log capture
[debug] [RemoteDebugger] WebKit remote debugger socket disconnected
[debug] [BaseDriver] Event ‘newSessionStarted’ logged at 1532001485612 (17:28:05 GMT+0530 (IST))
[MJSONWP] Encountered internal error running command: TimeoutError: operation timed out
[MJSONWP] at afterTimeout (/usr/local/lib/node_modules/appium/node_modules/bluebird/js/release/timers.js:46:19)
[MJSONWP] at Timeout.timeoutTimeout [as _onTimeout] (/usr/local/lib/node_modules/appium/node_modules/bluebird/js/release/timers.js:76:13)
[MJSONWP] at ontimeout (timers.js:498:11)
[MJSONWP] at tryOnTimeout (timers.js:323:5)
[MJSONWP] at Timer.listOnTimeout (timers.js:290:5)
[HTTP] <-- POST /wd/hub/session 500 12781 ms - 156

Looking for your support :slight_smile:

had the same issue, I upgraded to latest beta and that fixed it. npm install -g [email protected]

I am facing exact same issue again in my test, any idea how to solve this nowadays.

[BaseDriver] Event ‘newSessionStarted’ logged at 1586195499218 (12:51:39 GMT-0500 (CDT))

[MJSONWP] Encountered internal error running command: Error: Could not navigate to webview; there are none!

{
“automationName”: “XCUItest”,
“deviceName”: “iPhone 11 Pro Max”,
“platformName”: “iOS”,
“platformVersion”: “13.4”,
“autoWebview”: “true”,
“safariInitialUrl”: “https://www.github.com”,
“browserName”: “Safari”
}

appium --version
1.17.0

xCode 11.4