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.

3
  • Did you try to use : driver.get("URL"); ? Commented Mar 30, 2015 at 2:48
  • yes i tried not working . Commented Apr 1, 2015 at 8:58
  • What error you are getting? Also try to use JAR versino 2.44 Commented Apr 1, 2015 at 9:05

1 Answer 1

2

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 and acknowledge you have read our privacy policy.

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