diff --git a/java/src/org/openqa/selenium/manager/SeleniumManager.java b/java/src/org/openqa/selenium/manager/SeleniumManager.java index 8d1e25845e8a9..1dcc60c61c2ab 100644 --- a/java/src/org/openqa/selenium/manager/SeleniumManager.java +++ b/java/src/org/openqa/selenium/manager/SeleniumManager.java @@ -164,7 +164,8 @@ public String getDriverPath(Capabilities options) { return null; } List commandList = - Arrays.asList(binaryFile.getAbsolutePath(), "--browser", options.getBrowserName(), + Arrays.asList(binaryFile.getAbsolutePath(), + "--browser", options.getBrowserName(), "--output", "json"); if (!options.getBrowserVersion().isEmpty()) { commandList.addAll(Arrays.asList("--browser-version", options.getBrowserVersion())); @@ -177,7 +178,9 @@ public String getDriverPath(String driverName) { if(binaryFile == null) { return null; } - ImmutableList commandList = ImmutableList.of(binaryFile.getAbsolutePath(), "--driver", driverName); + ImmutableList commandList = ImmutableList.of(binaryFile.getAbsolutePath(), + "--driver", driverName, + "--output", "json"); return runCommand(commandList.toArray(new String[0])); } }