change browser settings
This commit is contained in:
1 parent
58bdaca252
commit
24329aa3d2
1 file changed
-2
@@ -58,8 +58,6 @@ def create_driver(headless=False):
|
|||||||
chrome_options.add_argument("--disable-notifications")
|
chrome_options.add_argument("--disable-notifications")
|
||||||
security_prefs = {
|
security_prefs = {
|
||||||
"profile.default_content_setting_values.media_stream": 2,
|
"profile.default_content_setting_values.media_stream": 2,
|
||||||
"profile.default_content_setting_values.notifications": 2,
|
|
||||||
"profile.default_content_setting_values.popups": 2,
|
|
||||||
"profile.default_content_setting_values.geolocation": 2,
|
"profile.default_content_setting_values.geolocation": 2,
|
||||||
"safebrowsing.enabled": True,
|
"safebrowsing.enabled": True,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user