Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion bin/webdriver-manager
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,20 @@ var binaries = {
}
}
}
},
ie32: {
name: 'IEDriver-32bit',
isDefault: false,
prefix: 'IEDriverServer',
filename: 'IEDriverServer_' + versions.iedriver + '.zip',
cdn: 'https://selenium-release.storage.googleapis.com/',
url: function() {
var urlPrefix = this.cdn +
shortVersion(versions.iedriver) + '/IEDriverServer';
if (os.type() == 'Windows_NT') {
return urlPrefix + '_Win32_' + versions.iedriver + '.zip';
}
}
}
};

Expand Down Expand Up @@ -262,7 +276,7 @@ switch (argv._[0]) {
args.push('-Dwebdriver.chrome.driver=' +
path.join(argv.out_dir, executableName('chromedriver')));
}
if (binaries.ie.exists) {
if (binaries.ie.exists || binaries.ie32.exists) {
args.push('-Dwebdriver.ie.driver=' +
path.join(argv.out_dir, executableName('IEDriverServer')));
}
Expand Down Expand Up @@ -320,6 +334,15 @@ switch (argv._[0]) {
zip.extractAllTo(argv.out_dir, true);
});
}
if (argv.ie32) {
downloadIfNew(binaries.ie32, argv.out_dir, existingFiles,
function(filename) {
var zip = new AdmZip(filename);
// Expected contents of the zip:
// IEDriverServer.exe
zip.extractAllTo(argv.out_dir, true);
});
}
break;
default:
console.error('Invalid command');
Expand Down