Skip to content

Commit 2af020f

Browse files
committed
[java] Fix bug where failing Selenium Manager method results in wrong error
1 parent 7ef0fe2 commit 2af020f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/src/org/openqa/selenium/remote/service/DriverService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ protected static File findExecutable(
141141
exePath = SeleniumManager.getInstance().getDriverPath(exeName);
142142
checkExecutable(new File(exePath));
143143
} catch (Exception e) {
144+
exePath = null;
144145
LOG.warning(String.format("Unable to obtain driver using Selenium Manager: %s", e.getMessage()));
145146
}
146147
}

0 commit comments

Comments
 (0)