On facebook, if I go to main page, and I get this annoying notification:
I try to bypass (not working) with:
options = webdriver.ChromeOptions()
options.add_experimental_option(
"prefs",
{
"credentials_enable_service": False,
"profile.password_manager_enabled": False,
"profile.default_content_setting_values.notifications": 2
# with 2 should disable notifications
},
)
# one more time
options.add_argument('--disable-notifications')
options.add_argument("--password-store=basic")
options.add_argument("--disable-infobars")
options.add_argument("--disable-extensions")
options.add_argument("start-maximized")