Hi everyone,
I'm using appium 1.6.4 , Xcode 8.3.2 and macOS 10.12.4.
I want to do mobile web test on real IOS device(iphone6 plus 10.3.1) but the always get error with ios-webkit-debug-proxy. but I'm sure the ios-webkit-debug-proxy is working well.
please help me. Thanks.
here is my Appium log:
[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.27.2) session
[Appium] Capabilities:
[Appium] showIOSLog: false
[Appium] platformName: 'iOS'
[Appium] platformVersion: '10.3.1'
[Appium] deviceName: 'iPhone7,1'
[Appium] udid: 'xxxxxxxxxxxxx'
[Appium] browserName: 'safari'
[XCUITest] XCUITestDriver version: 2.27.2
[BaseDriver] Session created with session id: 0139656d-4981-4e3e-92e4-c8fbe1ee36f2
[XCUITest] Xcode version set to '8.3.2' (tools v8.3.2.0.1.1492020469)
[XCUITest] iOS SDK Version set to '10.3'
[BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1493949711811 (10:01:51 GMT+0800 (CST))
[XCUITest] Available devices: xxxxxxx, xxxxxxxx
[XCUITest] Creating iDevice object with udid 'xxxxxxx'
[XCUITest] Determining device to run tests on: udid: 'xxxxxx', real device: true
[XCUITest] Safari test requested
[BaseDriver] Event 'appConfigured' logged at 1493949711881 (10:01:51 GMT+0800 (CST))
[BaseDriver] Event 'resetStarted' logged at 1493949711881 (10:01:51 GMT+0800 (CST))
[XCUITest] Reset: running ios real device reset flow
[BaseDriver] Event 'resetComplete' logged at 1493949711882 (10:01:51 GMT+0800 (CST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST session] to [POST localhost 8100 session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","appium io"],"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"4833A897-C836-4E1F-8C15-56405D5F3C34","capabilities":{"device":"iphone","browserName":"Safari","sdkVersion":"10.3.1","CFBundleIdentifier":"com.apple.mobilesafari"}},"sessionId":"4833A897-C836-4E1F-8C15-56405D5F3C34","status":0}
[BaseDriver] Event 'wdaSessionStarted' logged at 1493949732126 (10:02:12 GMT+0800 (CST))
[BaseDriver] Event 'wdaPermsAdjusted' logged at 1493949732132 (10:02:12 GMT+0800 (CST))
[BaseDriver] Event 'wdaStarted' logged at 1493949732132 (10:02:12 GMT+0800 (CST))
[XCUITest] Setting initial orientation to 'PORTRAIT'
[JSONWP Proxy] Got response with status 200: {"value":{},"sessionId":"4833A897-C836-4E1F-8C15-56405D5F3C34","status":0}
[BaseDriver] Event 'orientationSet' logged at 1493949732826 (10:02:12 GMT+0800 (CST))
[XCUITest] Waiting for initial webview
[iOS] Waiting for 3000 ms before navigating to view.
[iOS] Navigating to most recently opened webview
[iOS] Retrieving contexts and views
[iOS] Selecting by url: true (expected url: 'http://appium.io')
[RemoteDebugger] Getting WebKitRemoteDebugger pageArray: 27753
[RemoteDebugger] Sending request to: 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
[iOS] No web frames found.
[XCUITest] Error: Could not navigate to webview; there are none!
at XCUITestDriver.spinHandles$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-ios-driver/lib/commands/context.js:511:13)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Error: Could not navigate to webview; there are none!
at XCUITestDriver.spinHandles$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-ios-driver/lib/commands/context.js:511:13)