Opera driver ignores OperaOptions setExperimentalOption("prefs", prefs)
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.
Also having this same issue!
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.