File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -2874,6 +2874,22 @@ def get_local_driver(
28742874 driver_version = saved_mcv
28752875 if is_using_uc (undetectable , browser_name ):
28762876 use_br_version_for_uc = True
2877+ if (
2878+ (headless or headless2 )
2879+ and IS_WINDOWS
2880+ and major_chrome_version
2881+ and int (major_chrome_version ) >= 117
2882+ and not is_using_uc (undetectable , browser_name )
2883+ and not (remote_debug or devtools or use_wire )
2884+ and not (proxy_string or multi_proxy or proxy_pac_url )
2885+ and (not chromium_arg or "debug" not in chromium_arg )
2886+ and (not servername or servername == "localhost" )
2887+ ):
2888+ # Hide the "DevTools listening on ..." message.
2889+ # https://bugs.chromium.org
2890+ # /p/chromedriver/issues/detail?id=4403#c35
2891+ # (Only when the remote debugging port is not needed.)
2892+ chrome_options .add_argument ("--remote-debugging-pipe" )
28772893 except Exception :
28782894 major_chrome_version = None
28792895 if major_chrome_version :
You can’t perform that action at this time.
0 commit comments