Skip to content

Commit 7f72932

Browse files
author
Aryan-Verma
committed
Fix chrome driver issue
1 parent 4c85fb3 commit 7f72932

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ the License.-->
340340
<dependency>
341341
<groupId>org.seleniumhq.selenium</groupId>
342342
<artifactId>selenium-chrome-driver</artifactId>
343-
<version>4.0.0-rc-1</version>
343+
<version>4.11.0</version>
344344
</dependency>
345345

346346
<dependency>

src/main/java/io/cdap/e2e/utils/SeleniumDriver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
package io.cdap.e2e.utils;
1818

19-
import io.github.bonigarcia.wdm.WebDriverManager;
2019
import org.openqa.selenium.WebDriver;
2120
import org.openqa.selenium.chrome.ChromeDriver;
21+
import org.openqa.selenium.chrome.ChromeDriverService;
2222
import org.openqa.selenium.chrome.ChromeOptions;
2323
import org.openqa.selenium.remote.HttpCommandExecutor;
2424
import org.openqa.selenium.remote.SessionId;
@@ -43,7 +43,7 @@ public class SeleniumDriver {
4343
private static ChromeDriver chromeDriver;
4444

4545
SeleniumDriver() throws IOException {
46-
WebDriverManager.chromedriver().setup();
46+
ChromeDriverService service = new ChromeDriverService.Builder().build();
4747
ChromeOptions chromeOptions = new ChromeOptions();
4848
chromeOptions.addArguments("--no-sandbox");
4949
chromeOptions.addArguments("--disable-setuid-sandbox");

0 commit comments

Comments
 (0)