Skip to content

Commit

Permalink
Enable BiDi
Browse files Browse the repository at this point in the history
  • Loading branch information
burakkaygusuz committed Nov 12, 2024
1 parent 3e6ac0d commit a641d7d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/java/io/github/burakkaygusuz/config/Browser.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ protected ChromeOptions getOptions() {

final ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions
.enableBiDi()
.setExperimentalOption("excludeSwitches", Collections.singletonList("enable-automation"))
.setExperimentalOption("prefs", prefs)
.addArguments("--disable-gpu", "--disable-logging", "--disable-dev-shm-usage")
Expand All @@ -40,7 +41,9 @@ protected FirefoxOptions getOptions() {

firefoxProfile.setAcceptUntrustedCertificates(true);
firefoxProfile.setAssumeUntrustedCertificateIssuer(true);
firefoxOptions.addPreference("dom.webnotifications.enabled", false)
firefoxOptions
.enableBiDi()
.addPreference("dom.webnotifications.enabled", false)
.addPreference("gfx.direct2d.disabled", true)
.addPreference("layers.acceleration.force-enabled", true)
.addPreference("javascript.enabled", true)
Expand All @@ -59,7 +62,9 @@ protected EdgeOptions getOptions() {
prefs.put("profile.password_manager_enabled", false);

final EdgeOptions edgeOptions = new EdgeOptions();
edgeOptions.setExperimentalOption("excludeSwitches", Collections.singletonList("enable-automation"))
edgeOptions
.enableBiDi()
.setExperimentalOption("excludeSwitches", Collections.singletonList("enable-automation"))
.setExperimentalOption("prefs", prefs)
.addArguments("--disable-gpu", "--disable-logging", "--disable-dev-shm-usage")
.setPageLoadStrategy(PageLoadStrategy.NORMAL)
Expand Down

0 comments on commit a641d7d

Please sign in to comment.