Hi Team,
I am working with iOS Hybrid App, I need to test app on Real device with Latest iOS versions 10.3.3 and above.
Currently when I lands on UIWebView(it opens within the App not in safari) in the app and wait for almost 25-30 seconds still I am unable to find a UIWebView in getContextHandles(), it returns only native view.
A. Tried to launch iOS-webkit-debug proxy from capabilities - Unable to find UIWebView
- Capabilities.setCapability(“startIWDP”, true);
- Capabilities.setCapability(“webkitDebugProxyPort”, “27753”);
B. Tried to launch Manually iOS-webkit-debug proxy- Unable to find UIWebView
- Start Appium server: appium --webkit-debug-proxy-port 27753
- Start iOS-webKit-proxy: ios_webkit_debug_proxy -c myDeviceUDID:27753 -d
C. Tried Manual proxy- Unable to find UIWebView
- launch iOS-webKit-proxy: ios_webkit_debug_proxy -c myDeviceUDID:27753 -d
- In App Navigate to the webContent page (it opens within the App not in safari)
- Open url http://localhost:27753/json
- Empty response - {}
And when I try to launch safari and go to any random website, url http://localhost:27753/json, it shows response
[{
“devtoolsFrontendUrl”: “/devtools/devtools.html?ws=localhost:27753/devtools/page/1”,
“faviconUrl”: “”,
“thumbnailUrl”: “/thumb/xyz/”,
“title”: “xyzzy”,
“url”: “xyzzy”,
“webSocketDebuggerUrl”: “ws://localhost:27753/devtools/page/1”,
“appId”: “PID:xyz”
}]
Can someone please help me to understand what exactly I am missing, or is there any open issue ?
From Appium 1.7 Release Notes - known issues, I found “Parallel Safari/Webview sessions are not working due to an Apple bug”.
Below are the versions on which I am working
iOS: 10.3.3
Device: 7plus
xCode: 9
Appium: 1.7.1
Java client: 5.0.3
selenium: 3.6.0
ios_webkit_debug_proxy 1.8
Thanks
Masood