public class DriverOptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DriverOptions.DriverOption
WebDriver option.
|
| Constructor and Description |
|---|
DriverOptions()
Constructs empty options.
|
DriverOptions(DriverOptions other)
Constructs clone of DriverOptions.
|
DriverOptions(IConfig config)
Constructs driver options specified by command line.
|
| Modifier and Type | Method and Description |
|---|---|
DriverOptions |
addDefinitions(String... defs)
Add "define" parameters.
|
String |
get(DriverOptions.DriverOption opt)
Get option value.
|
org.openqa.selenium.remote.DesiredCapabilities |
getCapabilities()
Get desired capabilities.
|
List<File> |
getChromeExtensions()
Get Chrome Extensions for starting up driver.
|
String[] |
getCliArgs()
Get CLI arguments for starting up driver.
|
Map<String,String> |
getEnvVars()
Get environment variables map.
|
boolean |
has(DriverOptions.DriverOption opt)
DriverOptions instance has specified option.
|
DriverOptions |
set(DriverOptions.DriverOption opt,
String... values)
Set option key and value.
|
String |
toString() |
public DriverOptions()
public DriverOptions(IConfig config)
config - configuration information.public DriverOptions(DriverOptions other)
other - other DriverOptions.public String get(DriverOptions.DriverOption opt)
opt - option key.public boolean has(DriverOptions.DriverOption opt)
opt - option key.public DriverOptions set(DriverOptions.DriverOption opt, String... values)
opt - option key.values - option values. (multiple values are accepted by DEFINE and CLI_ARGS only)public DriverOptions addDefinitions(String... defs)
defs - definitions.public String[] getCliArgs()
public List<File> getChromeExtensions()
public Map<String,String> getEnvVars()
public org.openqa.selenium.remote.DesiredCapabilities getCapabilities()
Copyright © 2017. All rights reserved.