Selenide: Add option "chrome.switches"

Created on 26 Feb 2016  路  2Comments  路  Source: selenide/selenide

When using Chrome browser, we sometimes want to pass switches to chrome.
For example,

  • options.addArguments("chrome.switches", "--disable-popup-blocking");
  • options.addArguments("chrome.switches", "--start-maximized");

Add configuration parameter -Dselenide.chrome.switches. It can be empty by default.

feature

Most helpful comment

To those who found this via Googling (like myself), per the javadoc, this is now deprecated in favor of -Dchromeoptions.args=<comma-separated list of switches>.

All 2 comments

Done in Selenide 3.4

To those who found this via Googling (like myself), per the javadoc, this is now deprecated in favor of -Dchromeoptions.args=<comma-separated list of switches>.

Was this page helpful?
0 / 5 - 0 ratings