here is the code:
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);//adding thread to launch browser.
driver.get("http://www.google.com");
}
so i am able to launch safari, but not able to navigate to the url,.
Kindly help me on this.