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
1,976 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,910 points

Related Questions In Selenium

+1 vote
2 answers
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
• 28,140 points
1,816 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 21, 2019 in Selenium by navikasingh
• 140 points
859 views
0 votes
2 answers

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,500 points
13,724 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,166 views
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,910 points
7,243 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,885 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,910 points
2,342 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP