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,320 points
170 views

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.https://github.com/appium/appium/issues/9601

answered Jun 11, 2018 by Samarpit
• 5,870 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,800 points
86 views
+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
56 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,460 points
11,249 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,510 points
2,134 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,870 points
1,786 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,870 points
1,747 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,870 points
555 views