public class TestDriverBuilder extends Object implements com.google.common.base.Supplier<TestDriver>
TestDriver through the
get() method.
You can either use it by specifying a Supplier class or the class it self as
a construction argument. Call get() to instantiate a new driver.
The Supplier class supplies objects of a single type. Semantically that could be
factories, generators, builders, closures, or something else entirely.| Modifier and Type | Field and Description |
|---|---|
static String |
TEST_PRODUCT_OPTION_KEY |
| Constructor and Description |
|---|
TestDriverBuilder()
By default, this class provides a plain
TestOperaDriver instance object with the
default capabilities. |
TestDriverBuilder(TestDriverSupplier supplier)
You may build a new Opera instance by specifying an implementation of the
Supplier interface. |
| Modifier and Type | Method and Description |
|---|---|
static TestDriverSupplier |
detect() |
TestDriver |
get()
Retrieves an instance.
|
TestDriverBuilder |
modifyLogLevel(Level level)
Allows you to override the logging levels specified in the capabilities.
|
TestDriverBuilder |
using(org.openqa.selenium.Capabilities capabilities)
Specify which capabilities you'd like the driver to be instantiated with.
|
TestDriverBuilder |
using(OperaSettings settings)
Specify which settings you'd like the driver to be instantiated with.
|
public static final String TEST_PRODUCT_OPTION_KEY
public TestDriverBuilder()
TestOperaDriver instance object with the
default capabilities.public TestDriverBuilder(TestDriverSupplier supplier)
Supplier interface. The supplier may, for instance, perform pre- or post startup
steps needed for a custom driver configuration.supplier - a supplier that implements Supplier.get()public TestDriverBuilder using(OperaSettings settings)
settings - settings for the driverpublic TestDriverBuilder using(org.openqa.selenium.Capabilities capabilities)
capabilities - capabilities for the driverpublic TestDriverBuilder modifyLogLevel(Level level)
level - the logging level you wish the driver to usepublic TestDriver get()
get in interface com.google.common.base.Supplier<TestDriver>public static TestDriverSupplier detect()
Copyright © 2013. All Rights Reserved.