Skip to content

Commit 5ba8284

Browse files
committed
Fix issue where Chrome was blocking new tabs as pop-ups
1 parent 57df468 commit 5ba8284

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
@@ -2228,6 +2228,8 @@ def _set_chrome_options(
22282228
chrome_options.add_argument("--wm-window-animations-disabled")
22292229
chrome_options.add_argument("--enable-privacy-sandbox-ads-apis")
22302230
chrome_options.add_argument("--disable-background-timer-throttling")
2231+
# Prevent new tabs opened by Selenium from being blocked:
2232+
chrome_options.add_argument("--disable-popup-blocking")
22312233
# Skip remaining options that trigger anti-bot services
22322234
return chrome_options
22332235
chrome_options.add_argument("--test-type")

0 commit comments

Comments
 (0)