Java Safari正在ios模拟器上启动,但无法使用driver.get(“;”;)获取url
代码如下:Java Safari正在ios模拟器上启动,但无法使用driver.get(“;”;)获取url,java,selenium,ios-simulator,appium,appium-ios,Java,Selenium,Ios Simulator,Appium,Appium Ios,代码如下: ios simulator is getting launched, safari is also launched and "http://127.0.0.1:4723/wd/hub" navigates to the "let's browse" page, but then thats that, not able to navigate to "google.com" page. WebDriver driver; DesiredCapabilitie
ios simulator is getting launched, safari is also launched and "http://127.0.0.1:4723/wd/hub" navigates to the "let's browse" page, but then thats that, not able to navigate to "google.com" page.
WebDriver driver;
DesiredCapabilities capabilities = new DesiredCapabilities();
public void init() throws MalformedURLException, InterruptedException {
capabilities.setCapability("platformName", "iOS");
capabilities.setCapability("deviceName", "iPhone 5");
capabilities.setCapability(CapabilityType.BROWSER_NAME, "safari");
capabilities.setCapability("platformVersion", "9.3");
//capabilities.setCapability("udid", "31C12FD6-8C33-4C58-AD0A- 7AFF9A3DF74B");
driver=new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
//driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
Thread.sleep(4000);
driver.get("http://www.google.com");
}
因此,我可以启动safari,但无法导航到url,。
请在这方面帮助我。由于已知的测试限制,此端点在实际设备上无法正常工作。
正在获取“方法未实现”webdriver异常。请升级java客户端和appium XSuite测试驱动程序。