Windows 10 reached EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to remove set as default pop, when using selenium ?

more options

when i open firefox with webdriver selenium 3.0, it always asks with popup to set as default ? though its on default windows 10

when i open firefox with webdriver selenium 3.0, it always asks with popup to set as default ? though its on default windows 10

Chosen solution

I see these two prefs about:config about the default browser check.

  • browser.shell.checkDefaultBrowser
  • browser.shell.skipDefaultBrowserCheck

You can consider to set these prefs to false via mozilla.cfg to see if that works better. See Configuration:

You can use the mozilla.cfg file in the Firefox program folder to set or lock preferences and run privileged JavaScript code.

A local-settings.js file needs to be placed in the "defaults/pref" folder where also the channel-prefs.js file is located to specify using mozilla.cfg.

pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);

These functions can be used in the mozilla.cfg file:

defaultPref();	// set new default value
pref();		// set pref, allow changes in current session
lockPref();	// lock pref, disallow changes

Start mozilla.cfg with a comment line (//).

Read this answer in context 👍 1

All Replies (2)

more options

Chosen Solution

I see these two prefs about:config about the default browser check.

  • browser.shell.checkDefaultBrowser
  • browser.shell.skipDefaultBrowserCheck

You can consider to set these prefs to false via mozilla.cfg to see if that works better. See Configuration:

You can use the mozilla.cfg file in the Firefox program folder to set or lock preferences and run privileged JavaScript code.

A local-settings.js file needs to be placed in the "defaults/pref" folder where also the channel-prefs.js file is located to specify using mozilla.cfg.

pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);

These functions can be used in the mozilla.cfg file:

defaultPref();	// set new default value
pref();		// set pref, allow changes in current session
lockPref();	// lock pref, disallow changes

Start mozilla.cfg with a comment line (//).

more options

thanks these options are really helpfull. To set as default option is gone now. But i the selenium script that iam running to automate is not working.

driver.get("www.google.com");

It opens browser but website is not getting triggered. looking into that now. I appreciate your help cor-el