Skip to content

Commit

Permalink
fix: Make Chrome 111 work (#1611)
Browse files Browse the repository at this point in the history
Uses the new JDK 11 based HTTP client which does not have a problem with sending extra Origin-headers
Related to SeleniumHQ/selenium#11750
  • Loading branch information
Artur- authored Mar 9, 2023
1 parent a34cdb3 commit 90627a9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vaadin-testbench-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@
<artifactId>selenium-http</artifactId>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-http-jdk-client</artifactId>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-opera-driver</artifactId>
Expand Down
4 changes: 4 additions & 0 deletions vaadin-testbench-shared/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-http</artifactId>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-http-jdk-client</artifactId>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ public Object invoke(Object self, Method thisMethod, Method proceed,
static {
LicenseChecker.checkLicenseFromStaticBlock("vaadin-testbench",
TestBenchVersion.testbenchVersion, null);
// Enable the Java 11+ HTTP client
System.setProperty("webdriver.http.factory", "jdk-http-client");
}

public static TestBenchDriverProxy createDriver(WebDriver driver) {
Expand Down

0 comments on commit 90627a9

Please sign in to comment.