Skip to content

Commit 34fb237

Browse files
committed
Update Chrome options to improve automation
1 parent 59ddf8a commit 34fb237

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,17 @@ def get_remote_driver(browser_name, headless, servername, port, proxy_string):
9191
}
9292
}
9393
chrome_options.add_experimental_option("prefs", prefs)
94+
chrome_options.add_argument("--test-type")
95+
chrome_options.add_argument("--no-first-run")
96+
chrome_options.add_argument("--ignore-certificate-errors")
9497
chrome_options.add_argument("--allow-file-access-from-files")
98+
chrome_options.add_argument("--allow-insecure-localhost")
9599
chrome_options.add_argument("--allow-running-insecure-content")
96100
chrome_options.add_argument("--disable-infobars")
101+
chrome_options.add_argument("--disable-save-password-bubble")
102+
chrome_options.add_argument("--disable-single-click-autofill")
103+
chrome_options.add_argument("--disable-translate")
104+
chrome_options.add_argument("--disable-web-security")
97105
if headless:
98106
chrome_options.add_argument("--headless")
99107
if proxy_string:
@@ -217,9 +225,17 @@ def get_local_driver(browser_name, headless, proxy_string):
217225
}
218226
}
219227
chrome_options.add_experimental_option("prefs", prefs)
228+
chrome_options.add_argument("--test-type")
229+
chrome_options.add_argument("--no-first-run")
230+
chrome_options.add_argument("--ignore-certificate-errors")
220231
chrome_options.add_argument("--allow-file-access-from-files")
232+
chrome_options.add_argument("--allow-insecure-localhost")
221233
chrome_options.add_argument("--allow-running-insecure-content")
222234
chrome_options.add_argument("--disable-infobars")
235+
chrome_options.add_argument("--disable-save-password-bubble")
236+
chrome_options.add_argument("--disable-single-click-autofill")
237+
chrome_options.add_argument("--disable-translate")
238+
chrome_options.add_argument("--disable-web-security")
223239
if headless:
224240
chrome_options.add_argument("--headless")
225241
if proxy_string:

0 commit comments

Comments
 (0)