0

I am using Selenium Webdriver with Firefox (although the same behaviour occurs in IE and Chrome).

I have been using driver.navigate().to().(""); and it was working fine for me.

I am passing in other URLs using driver.navigate().to().("https://www.google.com");

The browser is loading the previously given URL not the one passed in.

  • Did you try to use : driver.get("URL"); ? – Helping Hands Mar 30 '15 at 2:48
  • yes i tried not working . – Ranjan Gupta Apr 1 '15 at 8:58
  • What error you are getting? Also try to use JAR versino 2.44 – Helping Hands Apr 1 '15 at 9:05
1

There are two alternative methods of performing the task you require;

driver.Navigate().GoToUrl("http://example.com");

and

driver.get("http://www.google.com");

navigate().to() Navigate().GoToUrl and get() do exactly the same thing so it really comes down to which works for you and fits your coding preferences.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.