Skip to content

Commit

Permalink
Task apache#2016 : remove chromedriver and dynamically load correct one
Browse files Browse the repository at this point in the history
  • Loading branch information
hansva committed Dec 7, 2022
1 parent 343a64a commit 3620d10
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions integration-tests/hopweb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@
<version>1.17.6</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>5.3.1</version>
</dependency>
</dependencies>

<reporting>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package org.apache.hop.ui.hopgui;

import io.github.bonigarcia.wdm.WebDriverManager;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Order;
Expand Down Expand Up @@ -93,9 +94,11 @@ public static void setUp() throws Exception {
isHeadless = Boolean.valueOf(properties.getProperty("headless"));
transformsFile = properties.getProperty("transformsFile");

System.setProperty("webdriver.chrome.driver", driverFile.getAbsolutePath());
System.setProperty("webdriver.chrome.whitelistedIps", "");

//Use webDriverManager to fetch correct chromedriver
WebDriverManager.chromedriver().setup();

ChromeOptions options = new ChromeOptions();
if (isHeadless) {
options.addArguments("headless");
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 3620d10

Please sign in to comment.