question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please Stop Firefox Driver Opening Firefox First Run Page - Do We Really Have To Live With This?

See original GitHub issue

Meta -

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 -

  1. Create Selenium test in Visual Studio with C# that implements Firefox web driver
  2. Run test
  3. Observe Firefox always opens first run page

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
PeterWippermanncommented, Apr 27, 2016

This is a problem with the browser, not with the driver.

Here’s how I solved it for me:

        FirefoxProfile profile = new FirefoxProfile();
        profile.setPreference("browser.startup.page", 0); // Empty start page
        profile.setPreference("browser.startup.homepage_override.mstone", "ignore"); // Suppress the "What's new" page

        return new FirefoxDriver(profile);
0reactions
ShakeyDavecommented, Aug 25, 2016

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…)

Read more comments on GitHub >

github_iconTop Results From Across the Web

For the love of god how do you disable first-run (welcome ...
Hi I am looking for a way to disable the Firefox Welcome Page on first run, via script, or registry or config file,...
Read more >
How to stop Firefox from making automatic connections
This article explains various reasons why Firefox may make a connection to the Internet and how you can stop it from doing so,...
Read more >
"Firefox is already running but is not responding" error
How to start Firefox if you see an error message, "Firefox is already running, but is not responding" or, on macOS, "A copy...
Read more >
Firefox won't start - find solutions - Mozilla Support
This article explains what to do if the Firefox window does not open or you get an error message when you try to...
Read more >
Firefox hangs or is not responding - How to fix
When Firefox hangs, it stops responding to your clicks and doesn't seem to do anything. This article covers the various solutions depending on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found