fix: 9 - Updating Jenkinsfile

This commit is contained in:
2024-09-29 01:22:17 -04:00
parent c36e6e9336
commit 6fe7a83a5a
2 changed files with 11 additions and 7 deletions
@@ -64,8 +64,12 @@ public class Initialization {
// "/drivers/chromedriver");
// driver = new ChromeDriver();
ChromeOptions options = new ChromeOptions();
options.addArguments("headless");
driver = new ChromeDriver(options);
options.addArguments("--no-sandbox");
options.addArguments("--disable-dev-shm-usage");
options.addArguments("--headless");
options.addArguments("--remote-debugging-port=9222");
options.setBinary("/usr/bin/google-chrome");
driver.get(prop.getProperty("url"));
}
driver.manage().window().maximize();