Please Stop Firefox Driver Opening Firefox First Run Page - Do We Really Have To Live With This?
See original GitHub issueMeta -
OS: Selenium Version: Browser: Browser Version: IDE Language Test Runner
Expected Behavior -
Firefox driver will open Firefox to requested web url.
Actual Behavior -
Firefox driver opens Firefox First Run page and test cannot continue. I have tried various methods now to overcome this issue and I am just sick of it. Can you not just fix Selenium so it doesn’t do this? With Selenium being tightly binded to Firefox you would think this issue would not exist.
I have tried:
- Create firefox profile and call it in the c# code - Does Not Work
string path = @"C:\Users\username\AppData\Local\Mozilla\Firefox\Profiles\w0izu99q.Test Profile"; FirefoxProfile ffprofile = new FirefoxProfile(path); driver = new FirefoxDriver(ffprofile);
- In c# code force Firefox to open to blank page - Does Not Work
FirefoxProfile prof = new FirefoxProfile(); prof.SetPreference("browser.startup.homepage_override.mstone", "ignore"); prof.SetPreference("startup.homepage_welcome_url.additional", "about:blank"); driver = new FirefoxDriver(prof);
- Rolled back to older version of Firefox - Does Not Work
- Used older version of web driver - Does Not Work
Steps to reproduce -
- Create Selenium test in Visual Studio with C# that implements Firefox web driver
- Run test
- Observe Firefox always opens first run page
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
This is a problem with the browser, not with the driver.
Here’s how I solved it for me:
I’m having this problem with the Selenium NuGet package published on the 29th June 2016, and setting up a browser profile doesn’t fix it. Does anyone know if the version discussed above, in which this problem was fixed, is the version that’s distributed via NuGet?
(If possible, I’d like to keep using NuGet as I’ve experienced issues relating to keeping Selenium in line with Firefox releases pretty much constantly for years… So a world in which I can just update a NuGet package when Firefox stops playing nicely would be a good one…)