Search code examples
c#selenium-chromedriver

Where can I find a list of all available ChromeOption arguments?


I am a big advocate for reading the manual. But in this case, despite searching online for some time I cannot find a manual explaining all of the available ChromeOptions arguments. Somewhere there must be a listing of all of the string arguments and what they mean.

For example, here are some that I found by stumbling through examples:

var options = new ChromeOptions();
options.AddArgument("incognito");
options.AddArguments("test-type");

Can someone please direct me to a listing? I am using C# 4.6, Selenium 2.45.


Solution

  • 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.h