Skip to content

Commit

Permalink
fixed for compatibility with latest selenium
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Jul 16, 2024
1 parent b62f5e2 commit 87f1b6c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/org/rascalmpl/tutor/Screenshotter.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriverLogLevel;
import org.openqa.selenium.chrome.ChromeDriverService;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.remote.RemoteWebDriver;
Expand Down Expand Up @@ -97,11 +96,9 @@ private String inferChromeDriverBinaryLocation() throws IOException {

private static RemoteWebDriver getBrowser(ChromeDriverService service, String BROWSER_BINARY) {
ChromeOptions options = new ChromeOptions()
.setHeadless(true)
.setBinary(BROWSER_BINARY)
.addArguments("--headless", "--disable-gpu", "--window-size=1900,1200","--ignore-certificate-errors","--disable-extensions","--no-sandbox","--disable-dev-shm-usage")
.addArguments("--user-data-dir=/tmp/rascal-config/google-chrome")
.setLogLevel(ChromeDriverLogLevel.OFF)
;

RemoteWebDriver driver = new RemoteWebDriver(service.getUrl(), options);
Expand Down

0 comments on commit 87f1b6c

Please sign in to comment.