I want to test safari on real device (ipad), below are my configurations:
- Mac os: 10.10; xCode: 6.1
- Appium 1.3.1 (install using npm)
- SafariLauncher, I got the source from github and sign it with my developer signature, and has installed to my iPad
- iOS-webkit-debug-proxy, I have installed it using brew command, and run it using command “iOS_webkit_debug_proxy” (i’m not sure whether this command is right)
- My capabilities:
capabilities.setCapability(“platformName”, “iOS”);
capabilities.setCapability(“platformVersion”, “7.1.2”);
capabilities.setCapability(“deviceName”, “iPad”);
capabilities.setCapability(“udid”,“xxxxx”);
capabilities.setCapability(“app”, “com.sas.safarilauncher”);
driver = new AppiumDriver(new URL(“http://127.0.0.1:4723/wd/hub”),capabilities); - My test cases:
e.g. driver.findElement(By.xpath(//xxx/xx/xxx)).click();
When the test case is running, the ‘SafariLauncher’ is launched, and the mobileSafari is opened, but from the log I notice that “error: [REMOTE] Could not connect to WebKitRemoteDebugger server”.
and the test case is not excited, e.g. I could not see the click method on screen, seems the device is not receive the command.
I’m not very clear how to use the iOS-webkit-debug-proxy with Appium for Safari testing on real device? and how to config it? any feedback is appreciated, thanks!