Configuring security options in Selenide chromeDriver

How i can in selenide chromeDriver (Chrome) change security option from "no protection" to "standard protection" ? Like in the photo below options


Ответы (1 шт):

Автор решения: Mephist

Ifound solution:

 `  HashMap<String, Object> chromePrefs = new HashMap<>();
    chromePrefs.put("safebrowsing.enabled", "true");
    ChromeOptions options = new ChromeOptions();
    options.setExperimentalOption("prefs", chromePrefs);
    Configuration.browserCapabilities = options;
→ Ссылка