Maxime Joyal
Maxime Joyal

Reputation: 183

using selenium IWebDriver, firefox keep timing out?

since an downgrade of firefox 42, I keep having a weird behavior... When setting a IWebDriver with firefox, it does open the browser, but then it timeouts every time! Why would it timeout like this?

Here is the code I use to open it

string remoteAddress = "http://localhost:4444/wd/hub";

FirefoxProfile profile = new FirefoxProfile();
profile.AcceptUntrustedCertificates = true;

DesiredCapabilities capabilities = DesiredCapabilities.Firefox();
capabilities.SetCapability(FirefoxDriver.ProfileCapabilityName, profile.ToBase64String());
capabilities.SetCapability("firefox_binary", "C:\\Program Files\\Mozilla Firefox\\firefox.exe");

IWebDriver driver = new RemoteWebDriver(new Uri(remoteAddress), capabilities, TimeSpan.FromSeconds(20));

Upvotes: 0

Views: 47

Answers (1)

Maciek
Maciek

Reputation: 141

Please make sure you're using latest Selenium package - it should do the work.

Upvotes: 1

Related Questions