Skip to content

Commit 13d47c3

Browse files
committed
Adding selenium http jdk
1 parent fd83940 commit 13d47c3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

recaptcha_enterprise/snippets/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@
7272
<artifactId>webdrivermanager</artifactId>
7373
<version>5.3.0</version>
7474
</dependency>
75+
<!-- The below dependency should be removed after Selenium for Chrome111 works.
76+
https://github.com/SeleniumHQ/selenium/issues/11750 -->
77+
<dependency>
78+
<groupId>org.seleniumhq.selenium</groupId>
79+
<artifactId>selenium-http-jdk-client</artifactId>
80+
<version>4.8.1</version>
81+
</dependency>
7582
<!-- [End_Selenium_dependencies] -->
7683

7784

recaptcha_enterprise/snippets/src/test/java/app/SnippetsIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public static void setUp() throws IOException, InterruptedException {
9696
TimeUnit.SECONDS.sleep(5);
9797

9898
// Set Selenium Driver to Chrome.
99+
System.setProperty("webdriver.http.factory", "jdk-http-client");
99100
ChromeOptions options = new ChromeOptions();
100101
options.addArguments("--headless");
101102
options.addArguments("--no-sandbox");

0 commit comments

Comments
 (0)