@@ -710,8 +710,7 @@ def main(override=None, intel_for_uc=None, force_uc=None):
710
710
p_version = c3 + use_version + cr
711
711
log_d ("\n *** %s = %s" % (msg , p_version ))
712
712
elif name == "iedriver" :
713
- major_version = "3.14"
714
- full_version = "3.14.0"
713
+ full_version = "4.14.0"
715
714
use_version = full_version
716
715
if IS_WINDOWS and "64" in ARCH :
717
716
file_name = "IEDriverServer_x64_%s.zip" % full_version
@@ -723,8 +722,9 @@ def main(override=None, intel_for_uc=None, force_uc=None):
723
722
"Windows-based systems!"
724
723
)
725
724
download_url = (
726
- "https://selenium-release.storage.googleapis.com/"
727
- "%s/%s" % (major_version , file_name )
725
+ "https://github.com/SeleniumHQ/selenium/"
726
+ "releases/download/selenium-"
727
+ "%s/%s" % (full_version , file_name )
728
728
)
729
729
headless_ie_version = "v1.4"
730
730
headless_ie_file_name = "headless-selenium-for-win-v1-4.zip"
@@ -949,7 +949,11 @@ def main(override=None, intel_for_uc=None, force_uc=None):
949
949
make_executable (path_file )
950
950
log_d ("Also copied to: %s%s%s" % (c3 , path_file , cr ))
951
951
log_d ("" )
952
- elif name == "edgedriver" or name == "msedgedriver" :
952
+ elif (
953
+ name == "edgedriver"
954
+ or name == "msedgedriver"
955
+ or name == "iedriver"
956
+ ):
953
957
if IS_MAC or IS_LINUX :
954
958
# Mac / Linux
955
959
expected_contents = [
@@ -969,6 +973,8 @@ def main(override=None, intel_for_uc=None, force_uc=None):
969
973
"Driver_Notes/LICENSE" ,
970
974
"msedgedriver.exe" ,
971
975
]
976
+ if name == "iedriver" :
977
+ expected_contents = ["IEDriverServer.exe" ]
972
978
if len (contents ) > 5 :
973
979
raise Exception ("Unexpected content in EdgeDriver Zip file!" )
974
980
for content in contents :
@@ -984,21 +990,20 @@ def main(override=None, intel_for_uc=None, force_uc=None):
984
990
# Remove existing version if exists
985
991
str_name = str (f_name )
986
992
new_file = os .path .join (downloads_folder , str_name )
987
- if IS_MAC or IS_LINUX :
988
- # Mac / Linux
989
- if str_name == "msedgedriver" :
990
- driver_file = str_name
991
- driver_path = new_file
992
- if os .path .exists (new_file ):
993
- os .remove (new_file )
994
- else :
995
- # Windows
996
- if str_name == "msedgedriver.exe" :
997
- driver_file = str_name
998
- driver_path = new_file
999
- if os .path .exists (new_file ):
1000
- os .remove (new_file )
993
+ if (
994
+ ((IS_MAC or IS_LINUX ) and str_name == "msedgedriver" )
995
+ or (
996
+ str_name == "msedgedriver.exe"
997
+ or str_name == "IEDriverServer.exe"
998
+ )
999
+ ):
1000
+ driver_file = str_name
1001
+ driver_path = new_file
1002
+ if os .path .exists (new_file ):
1003
+ os .remove (new_file )
1001
1004
if not driver_file or not driver_path :
1005
+ if str_name == "IEDriverServer.exe" :
1006
+ raise Exception ("IEDriverServer missing from Zip file!" )
1002
1007
raise Exception ("msedgedriver missing from Zip file!" )
1003
1008
log_d ("Extracting %s from %s ..." % (contents , file_name ))
1004
1009
zip_ref .extractall (downloads_folder )
0 commit comments