Where can I find a list of all available ChromeOption arguments?
Solution 1:
List of common switches :
/master/chrome/common/chrome_switches.cc
List of headless switches :
/master/headless/app/headless_shell_switches.cc
To search other switches :
https://source.chromium.org/search?q=file:switches.cc&ss=chromium%2Fchromium%2Fsrc
List of preferences:
/master/chrome/common/pref_names.cc
Solution 2:
This is the one I use: http://peter.sh/experiments/chromium-command-line-switches/
var options = new ChromeOptions();
options.AddArgument("--start-maximized");
options.AddArgument("--ignore-certificate-errors");
options.AddArgument("--disable-popup-blocking");
options.AddArgument("--incognito");
and so forth :)
Solution 3:
Here is an answer about how to use the ChromeOptions used:
ChromeOptions options = new ChromeOptions();
options.addArguments("test-type");
options.addArguments("start-maximized");
options.addArguments("--window-size=1920,1080");
options.addArguments("--enable-precise-memory-info");
options.addArguments("--disable-popup-blocking");
options.addArguments("--disable-default-apps");
options.addArguments("test-type=browser");