Skip to content

Commit

Permalink
Upgrade selenium version to 4.16.1 (8.2) (#1711)
Browse files Browse the repository at this point in the history
* Upgrade selenium version to 4.16.0 (8.2)

* Update pom.xml

* remove selenium-http-jdk-client dependency

* pick the headless update from 4.12 to 4.13 version update

---------

Co-authored-by: Artur <[email protected]>
  • Loading branch information
ZheSun88 and Artur- authored Dec 14, 2023
1 parent 318a604 commit af2aca8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<Implementation-Version>${project.version}</Implementation-Version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<selenium.version>4.8.3</selenium.version>
<selenium.version>4.16.1</selenium.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<license.checker.version>1.12.3</license.checker.version>
Expand Down
4 changes: 0 additions & 4 deletions vaadin-testbench-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,6 @@
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-http-jdk-client</artifactId>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-devtools-v115</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ static public WebDriver createDriver(
FirefoxProfile profile = new FirefoxProfile(profileDir);
options.setProfile(profile);
}
options.setHeadless(Parameters.isHeadless());
if (Parameters.isHeadless()) {
options.addArguments("-headless");
}
driver = new FirefoxDriver(options);
} else if (BrowserUtil.isChrome(desiredCapabilities)) {
// Tells chrome not to show warning
Expand All @@ -76,7 +78,9 @@ static public WebDriver createDriver(
// #14319
ChromeOptions options = new ChromeOptions();
options.addArguments("--test-type ");
options.setHeadless(Parameters.isHeadless());
if (Parameters.isHeadless()) {
options.addArguments("--headless=new");
}
driver = new ChromeDriver(options);
} else if (BrowserUtil.isSafari(desiredCapabilities)) {
driver = new SafariDriver();
Expand Down

0 comments on commit af2aca8

Please sign in to comment.