Skip to content

Commit

Permalink
[Java] Fixes #12682
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Sep 4, 2023
1 parent 8a1f5da commit 5bce8d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@ public void start() throws IOException {
if (process != null) {
return;
}
if (this.executable == null) {
if (getDefaultDriverOptions().getBrowserName().isEmpty()) {
throw new WebDriverException("Driver executable is null and browser name is not set.");
}
this.executable = DriverFinder.getPath(this, getDefaultDriverOptions()).getDriverPath();
}
LOG.fine(String.format("Starting driver at %s with %s", this.executable, this.args));
process = new CommandLine(this.executable, args.toArray(new String[] {}));
process.setEnvironmentVariables(environment);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public File getDriverExecutable() {
}

@Override
protected Capabilities getDefaultDriverOptions() {
public Capabilities getDefaultDriverOptions() {
return new SafariOptions().setUseTechnologyPreview(true);
}

Expand Down

0 comments on commit 5bce8d9

Please sign in to comment.