Safari getting launched on ios simulator, but not able to get url using driver.get(“”)

0 votes

Below is my code for reference:

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");

}

Please help in this.

Jun 11, 2018 in Selenium by Martin
• 4,220 points
27 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Below github link will help as the endpoint does not work properly on real devices due to known XCTest limitations.https://github.com/appium/appium/issues/9601

answered Jun 11, 2018 by Samarpit
• 5,130 points

Related Questions In Selenium

0 votes
1 answer

i am not able to perform this method in selenium driver.get("google")

Hi Sachin, are you getting any errors ...READ MORE

answered May 15 in Selenium by Abha
• 10,960 points
18 views
0 votes
1 answer

Not able to open a new URL in a new tab in Selenium

There is a bug in ChromeDriver that ...READ MORE

answered May 21, 2018 in Selenium by Meci Matt
• 9,400 points
5,308 views
0 votes
1 answer

To check that the web page is loaded or not using Selenium Web Driver?

The solution is using Implicit Wait which ...READ MORE

answered May 24, 2018 in Selenium by Meci Matt
• 9,400 points
3,311 views
0 votes
0 answers

I want to click on Corporate but wont able to do

<li class="dropdown"><a class="dropdown-toggle text-xs-center" data-toggle="dropdown" href="#" role="button" ...READ MORE

Feb 25 in Selenium by Musibul Khan
46 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,050 points
160 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
549 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
149 views
0 votes
1 answer
0 votes
1 answer

Not able to login using selenium webdriver using Java Language

Try to send text to the username ...READ MORE

answered Jul 17, 2018 in Selenium by Samarpit
• 5,130 points
225 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.