Skip to content

Commit a18511e

Browse files
committed
Add a default Chromium option for disabling notifications
1 parent e0d1062 commit a18511e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ def _set_chrome_options(
303303
if user_agent:
304304
chrome_options.add_argument("--user-agent=%s" % user_agent)
305305
chrome_options.add_argument("--disable-infobars")
306+
chrome_options.add_argument("--disable-notifications")
306307
chrome_options.add_argument("--disable-save-password-bubble")
307308
chrome_options.add_argument("--disable-single-click-autofill")
308309
chrome_options.add_argument(
@@ -1248,6 +1249,7 @@ def get_local_driver(
12481249
abs_path = os.path.abspath(extension_dir)
12491250
edge_options.add_argument("--load-extension=%s" % abs_path)
12501251
edge_options.add_argument("--disable-infobars")
1252+
edge_options.add_argument("--disable-notifications")
12511253
edge_options.add_argument("--disable-save-password-bubble")
12521254
edge_options.add_argument("--disable-single-click-autofill")
12531255
edge_options.add_argument(

0 commit comments

Comments
 (0)