Skip to content

Commit a3b46c7

Browse files
authored
fix(iedriver): if downloading x64, use x64 version on start command (#173)
- clang formatting closes #147
1 parent 72e3d9f commit a3b46c7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: lib/cmds/start.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ function start(options: Options) {
130130
// https://bugs.openjdk.java.net/browse/JDK-6202721
131131
args.push('-Djava.security.egd=file:///dev/./urandom');
132132
}
133-
134133
if (options[Opt.LOGGING].getString()) {
135134
if (path.isAbsolute(options[Opt.LOGGING].getString())) {
136135
loggingFile = options[Opt.LOGGING].getString();
@@ -154,14 +153,14 @@ function start(options: Options) {
154153
path.resolve(outputDir, binaries[GeckoDriver.id].executableFilename(osType)));
155154
}
156155
if (downloadedBinaries[IEDriver.id] != null) {
157-
if (options[Opt.IE32]) {
156+
if (options[Opt.IE32].getBoolean()) {
158157
binaries[IEDriver.id].arch = 'Win32';
159158
}
160159
args.push(
161160
'-Dwebdriver.ie.driver=' +
162161
path.resolve(outputDir, binaries[IEDriver.id].executableFilename(osType)));
163162
}
164-
if (options[Opt.EDGE]) {
163+
if (options[Opt.EDGE] && options[Opt.EDGE].getString()) {
165164
// validate that the file exists prior to adding it to args
166165
try {
167166
let edgeFile = options[Opt.EDGE].getString();

0 commit comments

Comments
 (0)