File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -3164,6 +3164,13 @@ def get_local_driver(
3164
3164
cdp_events = uc_cdp_events
3165
3165
cert = "unable to get local issuer certificate"
3166
3166
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
+ )
3167
3174
try :
3168
3175
uc_path = None
3169
3176
if os .path .exists (LOCAL_UC_DRIVER ):
@@ -3213,6 +3220,13 @@ def get_local_driver(
3213
3220
)
3214
3221
uc_activated = True
3215
3222
else :
3223
+ if (
3224
+ use_version .isnumeric ()
3225
+ and int (use_version ) <= 74
3226
+ ):
3227
+ chrome_options .add_experimental_option (
3228
+ "w3c" , True
3229
+ )
3216
3230
service = ChromeService (
3217
3231
executable_path = LOCAL_CHROMEDRIVER ,
3218
3232
log_output = os .devnull ,
You can’t perform that action at this time.
0 commit comments