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 "" navigates to the "let's browse" page, but then thats that, not able to navigate to "" 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(""),   capabilities);


    //driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);





Please help in this.

Jun 11, 2018 in Selenium by Martin
• 4,330 points

1 answer to this question.

0 votes

Below github link will help as the endpoint does not work properly on real devices due to known XCTest limitations.

answered Jun 11, 2018 by Samarpit
• 5,890 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, 2019 in Selenium by Abha
• 27,930 points
+2 votes
0 answers

not able to get child element using parsed element in js function

I wrote below javascript code to fetch ...READ MORE

Dec 20, 2019 in Selenium by navikasingh
• 140 points
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,510 points
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,890 points
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,890 points
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,890 points