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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -