When do we use setExperimentalOptions in selenium chrome options? -
can please explain me last 2 lines of code.i have searched many sites answer there no clear explanation.
chromeoptions options = new chromeoptions(); hashmap<string, object> chromeprefs = new hashmap<string, object>(); chromeprefs.put("profile.default_content_settings.popups", 0); options.setexperimentaloptions("prefs", chromeprefs);
sets experimental option. useful new chromedriver options not yet exposed through chromeoptions api.
it allows test particular feature before gets released chrome developers.
also check- example given in link
Comments
Post a Comment