
**Answers:** 1. There is no way,you can run test on Real Device without physically connecting it to Mac with an Xcode. 2. Xcode can't detect any iPhone via wifi. 3. There is one way to run test on iPhone without physical connection,if you want to run tests on mobile website that is Safari: A. **ONE TIME SETUP** You need to install iWeb Driver (app) in iPhone once via Xcode. This is a deprecated way though. If you want this,I'll upload the iWeb Driver source code on github,you can download and install further. B. Now before running test,you need to launch the iWeb Driver (app) manually on device,once you run this,it will flash an a URL on app. C. Use this url in Remote Webdriver like: DesiredCapabilitIEs cap = new DesiredCapabilitIEs(); cap.setCapability(CapabilityType.PLATFORM,DesiredCapabilitIEs.iphone());WebDriver iphoneDriver = new RemoteWebDriver(new URL(iphoneIp),cap); and then use this driver just like other and run your tests.总结
以上是内存溢出为你收集整理的ios – IPhone真实设备自动化环境设置全部内容,希望文章能够帮你解决ios – IPhone真实设备自动化环境设置所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)