Skip to content

Commit ab3b149

Browse files
committed
Fix issue with old chromedriver versions
1 parent a3b6d8e commit ab3b149

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3164,6 +3164,13 @@ def get_local_driver(
31643164
cdp_events = uc_cdp_events
31653165
cert = "unable to get local issuer certificate"
31663166
mac_certificate_error = False
3167+
if (
3168+
use_version.isnumeric()
3169+
and int(use_version) <= 74
3170+
):
3171+
chrome_options.add_experimental_option(
3172+
"w3c", True
3173+
)
31673174
try:
31683175
uc_path = None
31693176
if os.path.exists(LOCAL_UC_DRIVER):
@@ -3213,6 +3220,13 @@ def get_local_driver(
32133220
)
32143221
uc_activated = True
32153222
else:
3223+
if (
3224+
use_version.isnumeric()
3225+
and int(use_version) <= 74
3226+
):
3227+
chrome_options.add_experimental_option(
3228+
"w3c", True
3229+
)
32163230
service = ChromeService(
32173231
executable_path=LOCAL_CHROMEDRIVER,
32183232
log_output=os.devnull,

0 commit comments

Comments
 (0)