prefs = {
"safebrowsing.enabled": "false",
"profile.default_content_setting_values.notifications" : 2,
"profile.default_content_settings.popups": 0}
Above code is in Python.I have searched for the answer/code-sample like this in Java Automation Testing but I could not find out.