sandeepkumar Posted August 11, 2018 Share Posted August 11, 2018 Hi all, I am new to automation testing I am trying to do Safari getting to launched on ios simulator, but am not able to get url using driver.get( “” ) code is in below 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"); } Thanks. sandeep, Quality Analyst. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 11, 2018 Developers Share Posted August 11, 2018 You posted in "AutoIt Technical Discussion", but what kind of language is the code you posted as it doesn't look like AutoIt3? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now