[英]Blank page while running selenium scripts on Iphone
I have successfully build the iWebDriver on iphone 4s ( provisioning profiles are also installed ). 我已经在iphone 4s上成功构建了iWebDriver(还安装了配置文件)。
I am able to ping ip address of Phone ( which is displayed when WebDriver is started on phone at the bottom " http://XXX.XX.XX.XX/wd/hub
" ) from my mac and also mac ip adress from iphone ( using ip scanning app ). 我可以从Mac ping Ping Phone的IP地址(当在底部“
http://XXX.XX.XX.XX/wd/hub
”的电话上启动WebDriver时显示),也可以从iphone ping IP地址(使用ip扫描应用程序)。
Now while running scripts from my mac, I am still seeing blank white screen in the phone ( when driver.get(URL) is executed ) with commands at the bottom of the blank screen ( setURL: ). 现在,从Mac运行脚本时,我仍然在电话中看到空白的白色屏幕(执行driver.get(URL)时),并且在空白屏幕的底部有命令(setURL:)。
I tried to open URL via iPhone Safari manually and it works fine. 我尝试通过iPhone Safari手动打开URL,并且工作正常。
WebDriver driver = new RemoteWebDriver(new URL("http://XXX.XX.XX.XX:3001/wd/hub"),
DesiredCapabilities.iphone());
driver.get(URL);
Thanks 谢谢
I had the same issue. 我遇到过同样的问题。
Try 尝试
driver.navigate().to("www.bbc.co.uk");
Instead of 代替
driver.get();
Seemed to fix my issue. 似乎可以解决我的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.