@groovy.transform.CompileStatic class WebDriverBinariesPluginExtension extends Object implements DriverArchitectureSpec
Extension for configuring webdriver binaries.
| Modifiers | Name | Description |
|---|---|---|
static String |
DRIVER_URLS_CONFIG_PROPERTY |
|
static String |
DRIVER_URLS_CONFIG_URL |
|
static String |
NAME |
| Constructor and description |
|---|
WebDriverBinariesPluginExtension
(Project project) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
chromedriver(Action<DriverConfigurationSpec> configurator)Configures a chrome driver. |
|
void |
chromedriver(groovy.lang.Closure<?> configurator)Configures a chrome driver. |
|
void |
configureExecSpec(JavaExecSpec spec)Configures an execution specification. |
|
void |
configureExecSpec(org.ysb33r.grolifant5.api.core.runnable.ForkedJvmExecutable<?> spec)Configures an execution specification. |
|
void |
configureExecTask(TaskProvider<? extends JavaExec> task)Configures a JavaExec task. |
|
void |
configureForkOptions(JavaForkOptions jfo)Configures an arbitrary JavaForkOptions. |
|
void |
configureTestTask(TaskProvider<? extends Test> task)Configures a Test task. |
|
void |
configureTestTasks(DomainObjectCollection<Test> tasks)Configures a collection of test tasks. |
|
void |
edgedriver(Action<DriverConfigurationSpec> configurator)Configures a edge driver. |
|
void |
edgedriver(groovy.lang.Closure<?> configurator)Configures a edge driver. |
|
void |
geckodriver(Action<DriverConfigurationSpec> configurator)Configures a gecko driver. |
|
void |
geckodriver(groovy.lang.Closure<?> configurator)Configures a gecko driver. |
|
DriverConfiguration |
getChromedriver()Access to the chrome driver. |
|
DriverConfiguration |
getEdgedriver()Access to the edge driver. |
|
DriverConfiguration |
getGeckodriver()Access to the gecko driver. |
|
DriverConfiguration |
getOperadriver()Access to the opera driver. |
|
Provider<java.util.Map<String, String>> |
getSystemProperties()All system properties than can be set to obtain driver locations. |
|
void |
operadriver(Action<DriverConfigurationSpec> configurator)Configures a opera driver. |
|
void |
operadriver(groovy.lang.Closure<?> configurator)Configures a opera driver. |
|
void |
setArchitecture(String architecture)Sets architecture to something other than the default. |
|
void |
setArchitecture(org.ysb33r.grolifant5.api.core.OperatingSystem$Arch arch)Sets architecture to something other than the default. |
|
void |
setArchitecture(Arch> arch)Sets architecture to something other than the default. |
|
void |
setDriverMetadataUri(Object uri)Override location of where to obtain the driver metadata. |
|
void |
setFallbackTo32Bit(boolean flag)Whether to fall back to a 32bit driver if 64bit is not available. |
|
void |
setFallbackTo32Bit(Provider<Boolean> fallbackTo32Bit)Whether to fall back to a 32bit driver if 64bit is not available. |
Configures a chrome driver.
configurator - ConfiguratorConfigures a chrome driver.
configurator - ConfiguratorConfigures an execution specification.
spec - JavaExecSpec to configure.Configures an execution specification.
spec - A org.ysb33r.grolifant5.api.core.runnable.ForkedJvmExecutable from Grolifant to configure.Configures a JavaExec task.
task - JavaExec task provider.Configures an arbitrary JavaForkOptions.
jfo - JavaForkOptionsConfigures a Test task.
task - Test task provider.Configures a collection of test tasks.
tasks - Collection of tasks.Configures a edge driver.
configurator - ConfiguratorConfigures a edge driver.
configurator - ConfiguratorConfigures a gecko driver.
configurator - ConfiguratorConfigures a gecko driver.
configurator - ConfiguratorAccess to the chrome driver.
Access to the edge driver.
Access to the gecko driver.
Access to the opera driver.
All system properties than can be set to obtain driver locations.
Configures a opera driver.
configurator - ConfiguratorConfigures a opera driver.
configurator - ConfiguratorSets architecture to something other than the default.
architecture - String that represents architecture.Sets architecture to something other than the default.
arch - Grolifant's OperatingSystem.Arch.Sets architecture to something other than the default.
arch - Provider to an instance of Grolifant's OperatingSystem.Arch.Override location of where to obtain the driver metadata.
uri - Anything that can be lazy-evaluated to a URI.Whether to fall back to a 32bit driver if 64bit is not available.
flag - true if fallback is enabled.