Skip to content

Commit

Permalink
[java] Remove browserVersion from options in SM Java wrapper (fix #12633
Browse files Browse the repository at this point in the history
) (#12639)
  • Loading branch information
bonigarcia authored Aug 30, 2023
1 parent 258a225 commit a124440
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions java/src/org/openqa/selenium/manager/SeleniumManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.openqa.selenium.Beta;
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.MutableCapabilities;
import org.openqa.selenium.Platform;
import org.openqa.selenium.Proxy;
import org.openqa.selenium.WebDriverException;
Expand Down Expand Up @@ -256,6 +258,7 @@ public Result getDriverPath(Capabilities options, boolean offline) {
if (!options.getBrowserVersion().isEmpty()) {
arguments.add("--browser-version");
arguments.add(options.getBrowserVersion());
((MutableCapabilities) options).setCapability("browserVersion", Optional.empty());
}

String browserBinary = getBrowserBinary(options);
Expand Down

0 comments on commit a124440

Please sign in to comment.