Skip to content

Commit a310907

Browse files
committed
[java] Setting output to json when getting driver path
1 parent d8474fb commit a310907

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

java/src/org/openqa/selenium/manager/SeleniumManager.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ public String getDriverPath(Capabilities options) {
164164
return null;
165165
}
166166
List<String> commandList =
167-
Arrays.asList(binaryFile.getAbsolutePath(), "--browser", options.getBrowserName(),
167+
Arrays.asList(binaryFile.getAbsolutePath(),
168+
"--browser", options.getBrowserName(),
168169
"--output", "json");
169170
if (!options.getBrowserVersion().isEmpty()) {
170171
commandList.addAll(Arrays.asList("--browser-version", options.getBrowserVersion()));
@@ -177,7 +178,9 @@ public String getDriverPath(String driverName) {
177178
if(binaryFile == null) {
178179
return null;
179180
}
180-
ImmutableList<String> commandList = ImmutableList.of(binaryFile.getAbsolutePath(), "--driver", driverName);
181+
ImmutableList<String> commandList = ImmutableList.of(binaryFile.getAbsolutePath(),
182+
"--driver", driverName,
183+
"--output", "json");
181184
return runCommand(commandList.toArray(new String[0]));
182185
}
183186
}

0 commit comments

Comments
 (0)