File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ requests==2.26.0;python_version<"3.5"
32
32
requests == 2.25.1 ;python_version >= "3.5" and python_version<"3.6"
33
33
requests == 2.26.0 ;python_version >= "3.6"
34
34
selenium == 3.141.0
35
- msedge-selenium-tools == 3.141.3
35
+ msedge-selenium-tools == 3.141.3 ; python_version < "3.7"
36
36
more-itertools == 5.0.0 ;python_version < "3.5"
37
37
more-itertools == 8.10.0 ;python_version >= "3.5"
38
38
cssselect == 1.1.0
Original file line number Diff line number Diff line change @@ -1266,7 +1266,11 @@ def get_local_driver(
1266
1266
sys .argv = sys_args # Put back the original sys args
1267
1267
1268
1268
# For Microsoft Edge (Chromium) version 80 or higher
1269
- from msedge .selenium_tools import Edge , EdgeOptions
1269
+ try :
1270
+ from msedge .selenium_tools import Edge , EdgeOptions
1271
+ except ModuleNotFoundError :
1272
+ os .system ("pip install msedge-selenium-tools" )
1273
+ from msedge .selenium_tools import Edge , EdgeOptions
1270
1274
1271
1275
if LOCAL_EDGEDRIVER and os .path .exists (LOCAL_EDGEDRIVER ):
1272
1276
try :
Original file line number Diff line number Diff line change 148
148
'requests==2.25.1;python_version>="3.5" and python_version<"3.6"' ,
149
149
'requests==2.26.0;python_version>="3.6"' ,
150
150
"selenium==3.141.0" ,
151
- " msedge-selenium-tools==3.141.3" ,
151
+ ' msedge-selenium-tools==3.141.3;python_version<"3.7"' ,
152
152
'more-itertools==5.0.0;python_version<"3.5"' ,
153
153
'more-itertools==8.10.0;python_version>="3.5"' ,
154
154
"cssselect==1.1.0" ,
You can’t perform that action at this time.
0 commit comments