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

Commit bc74328

Browse files
author
Rogier Schouten
committed
review comments
1 parent 42dc6d1 commit bc74328

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

bin/webdriver-manager

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ switch (argv._[0]) {
276276
args.push('-Dwebdriver.chrome.driver=' +
277277
path.join(argv.out_dir, executableName('chromedriver')));
278278
}
279-
if (binaries.ie.exists) {
279+
if (binaries.ie.exists || binaries.ie32.exists) {
280280
args.push('-Dwebdriver.ie.driver=' +
281281
path.join(argv.out_dir, executableName('IEDriverServer')));
282282
}
@@ -326,7 +326,16 @@ switch (argv._[0]) {
326326
});
327327
}
328328
if (argv.ie) {
329-
downloadIfNew(argv.ie32 ? binaries.ie32 : binaries.ie, argv.out_dir, existingFiles,
329+
downloadIfNew(binaries.ie, argv.out_dir, existingFiles,
330+
function(filename) {
331+
var zip = new AdmZip(filename);
332+
// Expected contents of the zip:
333+
// IEDriverServer.exe
334+
zip.extractAllTo(argv.out_dir, true);
335+
});
336+
}
337+
if (argv.ie32) {
338+
downloadIfNew(binaries.ie32, argv.out_dir, existingFiles,
330339
function(filename) {
331340
var zip = new AdmZip(filename);
332341
// Expected contents of the zip:

0 commit comments

Comments
 (0)