How to disable Firefox pop up blocker via CentOS 7 terminal

145 Views Asked by At

Running selenium tests on a CentOS 7 minimal VM. Need to disable Firfox popup blocker. Don't have UI, need to find a way to disable using the terminal.

Any commands available for that?

1

There are 1 best solutions below

0
Dexter On

What you could do is set the default preferences for the profile you use to run your test instance of Firefox.

The preference which controls the popup blocker behavior is dom.disable_open_during_load. Simply add the following entry to your prefs.js file:

user_pref("dom.disable_open_during_load", true);