Skip to content

Commit e3d5466

Browse files
committed
Disable Chrome's "DNS-Prefetch" feature by default
1 parent 9e052e8 commit e3d5466

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ def _set_chrome_options(
211211
chrome_options.add_argument("--disable-translate")
212212
chrome_options.add_argument("--disable-web-security")
213213
chrome_options.add_argument("--homepage=about:blank")
214+
chrome_options.add_argument("--dns-prefetch-disable")
214215
chrome_options.add_argument("--dom-automation")
215216
if not use_auto_ext: # (It's ON by default. Disable it when not wanted.)
216217
chrome_options.add_experimental_option("useAutomationExtension", False)

0 commit comments

Comments
 (0)