I am trying to run web app testing on a real iPad. I have SafariLauncher installed on the iPad. I have the ios-webkit-debug-proxy running. When the test is initiated, SafariLauncher loads and launches Safari and then navigates to the default page. As soon as Safari launches, ios_webkit_proxy disconnects from the iPad with an invalid message. The Selenium test then fails since it can not connect to the proxy.
How can I get ios_webkit_proxy to not crash? I have installed via brew and built from source with the same result.
"el":"SafariLauncher","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0","x":20,"y":-256,"width":748,"height":1024},">":[{"UIAWindow":{"@":{"name":null,"label":null,"value":null,"dom":null,
info: [debug] Navigating to most recently opened webview
info: [debug] [REMOTE] Getting WebKitRemoteDebugger pageArray
error: [REMOTE] Could not connect to WebKitRemoteDebugger server
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Could not navigate to webview! Err: Error: connect ECONNREFUSED
"
I have the same issue, with exactly same configuration, but with appium 1.2.3
couldnt find any resolution yet, would be great if some light can be throwed on this
Hi Thanks Sebv… now ios-webkit-proxy works fine with no errors.
But still i coudn`t succed with ios device safari test case execution.
Issue is
SafariLauncher loads and launches Safari in ios device and then navigates to the
default page. After this it is not navigating to specified url.
DesiredCapabilities capabilitiesIOS = new DesiredCapabilities();
Hi,
I have successfully reinstalled ios_webkit_debug_proxy with the latest version from github. Now it is not crashing for iOS 8.1 but I am still getting below error :
Could not connect to WebKitRemoteDebugger server Failed to start an Appium session, err was: Error: Could not navigate to webview! Err: Error: connect ECONNREFUSED Error: Could not navigate to webview! Err: Error: connect ECONNREFUSED
Plz help to solve this problem as I am stucked on iOS 8.1.
I am using below mentioned versions of Appium and ios_webkit_debug_proxy :
Appium :
commit 6c8eadead43a8d20b73b32b5bc9ed6f6de78f4c7
Merge: dafce3a a124a15
Author: Jonathan Lipps [email protected]
Date: Tue Feb 10 15:13:01 2015 -0800
Merge pull request #4526 from appium/v1.3.5-branch
v1.3.5 branch
ios_webkit_debug_proxy :
commit ed71f7351dac3f697ba5e3bab96d70249cf1e63f
Author: James Chuong [email protected]
Date: Wed Feb 11 10:27:21 2015 -0800
Fixed spelling
This is a known issue with 8.1, please use ios-webkit-debug-proxy-launcher.js to handle this. run the command ./bin/ios-webkit-debug-proxy-launcher.js -cUDID -d before running the test on real device.
Thanks for your solution.
Actually I had given wrong port number for ios_webkit_debug_proxy. After providing correct port number it’s working now. Anyways I have tried your solution as well and it’s also working.
I am facing the same issue, from where can i get ios-webkit-debug-proxy-launcher.js I did the brew install ios-webkit-debug-proxy. but i don’t get the launcher with it. Please let me know how to get and run it.