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
80 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,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
• 27,180 points
41 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,420 points
9,197 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,420 points
6,114 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,110 points
1,001 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
1,150 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
891 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
366 views