From 7f729320ad2f1eea03053cf3bde2cf59ac225828 Mon Sep 17 00:00:00 2001 From: Aryan-Verma Date: Thu, 31 Aug 2023 13:55:08 +0530 Subject: [PATCH] Fix chrome driver issue --- pom.xml | 2 +- src/main/java/io/cdap/e2e/utils/SeleniumDriver.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 4697837ba6..1e0aa309b1 100644 --- a/pom.xml +++ b/pom.xml @@ -340,7 +340,7 @@ the License.--> org.seleniumhq.selenium selenium-chrome-driver - 4.0.0-rc-1 + 4.11.0 diff --git a/src/main/java/io/cdap/e2e/utils/SeleniumDriver.java b/src/main/java/io/cdap/e2e/utils/SeleniumDriver.java index 11dfe4c51b..7a755dd622 100644 --- a/src/main/java/io/cdap/e2e/utils/SeleniumDriver.java +++ b/src/main/java/io/cdap/e2e/utils/SeleniumDriver.java @@ -16,9 +16,9 @@ package io.cdap.e2e.utils; -import io.github.bonigarcia.wdm.WebDriverManager; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; +import org.openqa.selenium.chrome.ChromeDriverService; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.remote.HttpCommandExecutor; import org.openqa.selenium.remote.SessionId; @@ -43,7 +43,7 @@ public class SeleniumDriver { private static ChromeDriver chromeDriver; SeleniumDriver() throws IOException { - WebDriverManager.chromedriver().setup(); + ChromeDriverService service = new ChromeDriverService.Builder().build(); ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.addArguments("--no-sandbox"); chromeOptions.addArguments("--disable-setuid-sandbox");