Class ChromeOptions

  • All Implemented Interfaces:
    Capabilities

    public class ChromeOptions
    extends ChromiumOptions<ChromeOptions>
    Class to manage options specific to ChromeDriver.

    Example usage:

    
     ChromeOptions options = new ChromeOptions()
     options.addExtensions(new File("/path/to/extension.crx"))
     options.setBinary(new File("/path/to/chrome"));
    
     // For use with ChromeDriver:
     ChromeDriver driver = new ChromeDriver(options);
    
     // For use with RemoteWebDriver:
     RemoteWebDriver driver = new RemoteWebDriver(
         new URL("http://localhost:4444/"),
         new ChromeOptions());
     
    Since:
    Since chromedriver v17.0.963.0