ism
ism

Reputation: 298

Seleniums Gecko driver crashes when going to new web pages

I am using the new Gecko Driver to test in Firefox. When I change the url it often fails. I have a test that goes to 10 different pages to perform a very basic health check. The pages always load when using Firefox manually (not Gecko/Selenium), but when using the Gecko driver it fails on the GoToUrl().

It's not consistent which of the ten pages it fails on, but it is always consistently failing on one of the ten. When it fails Firefox closes and an error message pops up asking if I want to submit the details to Mozilla.

Am I doing something wrong, or is there some restriction with the Gecko driver that I am unaware of? The Chrome and internet explorer drivers handle the exact same test just fine.

var service = FirefoxDriverService.CreateDefaultService(DriverPathOnSystem);
var driver = new FirefoxDriver(service);

driver.Navigate().GoToUrl(url);

EDIT

Upvotes: 0

Views: 446

Answers (1)

ism
ism

Reputation: 298

Upon further research I discovered I was actually using WebDriver v3.2.0.

I updated WebDriver to v3.4.0, updated FireFox to 53.0.0, updated GeckoDriver to 0.16.1 cleaned the solution and rebuilt and it worked.

Upvotes: 1

Related Questions