Fix chromedriver version

This commit is contained in:
Miroslav Štaffa 2023-10-05 14:16:25 +02:00
parent 0ec74d1242
commit 17da790e2d
2 changed files with 4 additions and 3 deletions

View file

@ -11,8 +11,8 @@
<artifactId>app</artifactId>
<properties>
<selenium.java.version>4.4.0</selenium.java.version>
<webdrivermanager.version>5.3.0</webdrivermanager.version>
<selenium.java.version>4.13.0</selenium.java.version>
<webdrivermanager.version>5.5.3</webdrivermanager.version>
<jackson.version>2.9.9</jackson.version>
</properties>

View file

@ -20,7 +20,8 @@ public class WebDriverConfiguration {
public WebDriver chromeDriver() {
WebDriverManager.chromedriver().setup();
ChromeOptions options = new ChromeOptions();
options.setHeadless(true);
// Remove if you want to see Selenium "click"
options.addArguments("--headless");
return new ChromeDriver(options);
}
}