Skip to content

Commit 119bedc

Browse files
committed
Update Chrome options for tests running on a Selenium Grid
1 parent a7df7f7 commit 119bedc

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
@@ -242,6 +242,8 @@ def _set_chrome_options(
242242
chrome_options.add_argument("--dom-automation")
243243
chrome_options.add_argument("--disable-hang-monitor")
244244
chrome_options.add_argument("--disable-prompt-on-repost")
245+
if servername != "localhost":
246+
use_auto_ext = True # Use Automation Extension with the Selenium Grid
245247
if not use_auto_ext: # (It's ON by default. Disable it when not wanted.)
246248
chrome_options.add_experimental_option("useAutomationExtension", False)
247249
if (settings.DISABLE_CSP_ON_CHROME or disable_csp) and not headless:

0 commit comments

Comments
 (0)