operachromiumdriver icon indicating copy to clipboard operation
operachromiumdriver copied to clipboard

Opera driver ignores OperaOptions setExperimentalOption("prefs", prefs)

Open DmitriyVasilyevPRV opened this issue 6 years ago • 2 comments

Operadriver ignores "prefs" experimental option completley. For example, consider following line of code

OperaOptions options = new OperaOptions(); Map<String, Object> prefs = new HashMap<>(); prefs.put("profile.default_content_setting_values.notifications", 1); options.setExperimentalOption("prefs", prefs); new OperaDriver(options);

Profile Preference file does not contain profile.default_content_setting_values.notifications option.

If steps are repeated for Chrome and ChromeOptions then chrome Profile Preference WILL contain such option.

Also, chrome allows to set CUSTOM values, for example

prefs.put("some.ui.automation.value", 1)

So basicly, there is NO way to manipulate different preferences of profile, for example, auto allow web push notifications, start in turbo mode etc.

DmitriyVasilyevPRV avatar Feb 27 '19 11:02 DmitriyVasilyevPRV

Also having this same issue!

sterlingfire avatar Jul 01 '19 20:07 sterlingfire

Trying to do the same thing, but with the option prefs.put("profile.block_third_party_cookies", true);.

Worked for earlier versions, but not anymore.

GJFR avatar Jul 18 '19 08:07 GJFR