Skip to content

Commit

Permalink
fix(iedriver): if downloading x64, use x64 version on start command (#…
Browse files Browse the repository at this point in the history
…173)

- clang formatting

closes #147
  • Loading branch information
cnishina authored Dec 14, 2016
1 parent 72e3d9f commit a3b46c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/cmds/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ function start(options: Options) {
// https://bugs.openjdk.java.net/browse/JDK-6202721
args.push('-Djava.security.egd=file:///dev/./urandom');
}

if (options[Opt.LOGGING].getString()) {
if (path.isAbsolute(options[Opt.LOGGING].getString())) {
loggingFile = options[Opt.LOGGING].getString();
Expand All @@ -154,14 +153,14 @@ function start(options: Options) {
path.resolve(outputDir, binaries[GeckoDriver.id].executableFilename(osType)));
}
if (downloadedBinaries[IEDriver.id] != null) {
if (options[Opt.IE32]) {
if (options[Opt.IE32].getBoolean()) {
binaries[IEDriver.id].arch = 'Win32';
}
args.push(
'-Dwebdriver.ie.driver=' +
path.resolve(outputDir, binaries[IEDriver.id].executableFilename(osType)));
}
if (options[Opt.EDGE]) {
if (options[Opt.EDGE] && options[Opt.EDGE].getString()) {
// validate that the file exists prior to adding it to args
try {
let edgeFile = options[Opt.EDGE].getString();
Expand Down

0 comments on commit a3b46c7

Please sign in to comment.