How to set Firefox Preferences

I need to set preferences in Firefox to avoid security bubbles popping out
In Selenium we could
FirefoxProfile profile = new FirefoxProfile(); profile.setPreference(“security.insecure_field_warning.contextual.enabled”, false);
driver = new FirefoxDriver(profile);

In Katalon I have tried adding ‘prefs’ as a Dictionary ‘{security.insecure_field_warning.contextual.enabled=false}’ in settings tab
But it didn’t work, I still see security warning when I enter text in password field

Here’s the log printed in Katalon while invoking firefox
User set preference: [‘prefs’, ‘{browser.formfill.enable=false, privacy.cpd.passwords=false, security.insecure_field_warning.contextual.enabled=false}’]

Thanks got it worked.

I am not sure about that actually. I haven’t made any changes in Katalon when I download. And My firefox version is latest 54. I am using Selenium 2.53. Is there any way how to add geckodriver in the built-in keyword (openbrowser)?

As I stated in the question, I have tried adding ‘prefs’ as a Dictionary ‘{security.insecure_field_warning.contextual.enabled=false}’ in settings tab
But it didn’t work, I still see security warning when I enter text in password field

Hi Hari,

Below is how to set Firefox Preferences:

Open Project > Settings
Select Execution > Default > Web UI > Firefox
Add a row, in which Name=firefox_profile, Type=Dictionary
Open Dictionary Property Builder from Value column and set your preferences here

Hope it will help.

I found out adding these keys will work for you:

security.insecure_field_warning.contextual.enabled’: False
security.insecure_password.ui.enabled’: False

http://prnt.sc/f6n6v1

Please give it a try. We don’t recommend bypass security check by the way :slight_smile:

Thanks

Hi there,

Which Firefox driver you are using from your Selenium script? Is that GeckoDriver or legacy Firefox driver?

Thanks

i want to set pref. user agent