Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit c989a7e

Browse files
Rogier Schoutenhankduan
Rogier Schouten
authored andcommitted
feat(webdriver-manager): add --ie32 commandline option
The new option allows to download the 32-bit version of the IE driver on a 64-bit system, as the 64-bit version has been broken for over a year now (the sendKeys() function works very slowly on it).
1 parent 1767494 commit c989a7e

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

bin/webdriver-manager

+24-1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,20 @@ var binaries = {
7777
}
7878
}
7979
}
80+
},
81+
ie32: {
82+
name: 'IEDriver-32bit',
83+
isDefault: false,
84+
prefix: 'IEDriverServer',
85+
filename: 'IEDriverServer_' + versions.iedriver + '.zip',
86+
cdn: 'https://selenium-release.storage.googleapis.com/',
87+
url: function() {
88+
var urlPrefix = this.cdn +
89+
shortVersion(versions.iedriver) + '/IEDriverServer';
90+
if (os.type() == 'Windows_NT') {
91+
return urlPrefix + '_Win32_' + versions.iedriver + '.zip';
92+
}
93+
}
8094
}
8195
};
8296

@@ -262,7 +276,7 @@ switch (argv._[0]) {
262276
args.push('-Dwebdriver.chrome.driver=' +
263277
path.join(argv.out_dir, executableName('chromedriver')));
264278
}
265-
if (binaries.ie.exists) {
279+
if (binaries.ie.exists || binaries.ie32.exists) {
266280
args.push('-Dwebdriver.ie.driver=' +
267281
path.join(argv.out_dir, executableName('IEDriverServer')));
268282
}
@@ -320,6 +334,15 @@ switch (argv._[0]) {
320334
zip.extractAllTo(argv.out_dir, true);
321335
});
322336
}
337+
if (argv.ie32) {
338+
downloadIfNew(binaries.ie32, argv.out_dir, existingFiles,
339+
function(filename) {
340+
var zip = new AdmZip(filename);
341+
// Expected contents of the zip:
342+
// IEDriverServer.exe
343+
zip.extractAllTo(argv.out_dir, true);
344+
});
345+
}
323346
break;
324347
default:
325348
console.error('Invalid command');

0 commit comments

Comments
 (0)