Skip to content

Commit e4f1d51

Browse files
committed
Refresh Chrome options
1 parent ee01fbf commit e4f1d51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,10 @@ def _set_chrome_options(
839839
chrome_options.add_argument("--disable-prompt-on-repost")
840840
chrome_options.add_argument("--dns-prefetch-disable")
841841
chrome_options.add_argument("--disable-translate")
842+
chrome_options.add_argument(
843+
'--disable-features=OptimizationHints,OptimizationHintsFetching,'
844+
'OptimizationGuideModelDownloading,OptimizationTargetPrediction'
845+
)
842846
if binary_location:
843847
chrome_options.binary_location = binary_location
844848
if not enable_3d_apis and not is_using_uc(undetectable, browser_name):

0 commit comments

Comments
 (0)