public class ChromeOptions extends org.openqa.selenium.chromium.ChromiumOptions<ChromeOptions>
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/wd/hub"),
new ChromeOptions());
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CAPABILITY
Key used to store a set of ChromeOptions in a
Capabilities
object. |
Constructor and Description |
---|
ChromeOptions() |
addArguments, addArguments, addEncodedExtensions, addEncodedExtensions, addExtensions, addExtensions, amendHashCode, asMap, merge, setBinary, setBinary, setExperimentalOption, setHeadless
setAcceptInsecureCerts, setPageLoadStrategy, setProxy, setStrictFileInteractability, setUnhandledPromptBehaviour
setCapability, setCapability, setCapability, setCapability
public static final java.lang.String CAPABILITY
Capabilities
object.