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

Popular posts from this blog

angular - Converting AngularJS deffered promise to AngularX observable for JSOM -

python - What's the Pythonic way to report nonfatal errors in a parser? -

python - AssertionError when trying to assert return value from two dictionaries with py.test -