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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -