সহায়তা খুঁজুন

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 ?

  • 2 উত্তরসমূহ
  • 1 এই সমস্যাটি আছে
  • 113 দেখুন
  • শেষ জবাব দ্বারা shailesh9872

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

সমাধান চয়ন করুন

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 (//).

প্রেক্ষাপটে এই উত্তরটি পড়ুন। 👍 1

All Replies (2)

more options

চয়ন করা সমাধান

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