Skip to content

Commit 8cdb1d9

Browse files
committed
Avoid notifications on Edge when possible
1 parent 206c9d6 commit 8cdb1d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2253,7 +2253,10 @@ def get_local_driver(
22532253
)
22542254
if not enable_sync:
22552255
edge_options.add_argument("--disable-sync")
2256-
if guest_mode or IS_WINDOWS:
2256+
if (
2257+
(guest_mode or IS_WINDOWS or selenium4_or_newer)
2258+
and not recorder_ext and not disable_csp
2259+
):
22572260
edge_options.add_argument("--guest")
22582261
if headless2:
22592262
try:

0 commit comments

Comments
 (0)