|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opera.core.systems.testing.drivers.OperaDriverBuilder
public class OperaDriverBuilder
OperaDriverBuilder is a builder that supplies you with instances of OperaDriver 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.
| Constructor Summary | |
|---|---|
OperaDriverBuilder()
By default, this class provides a plain OperaDriver instance object with the default
desired capabilities specified in Selenium's DesiredCapabilities.opera(). |
|
OperaDriverBuilder(Class<? extends OperaDriver> driverImplementation)
You may build a new Opera instance by specifying a custom driver class. |
|
OperaDriverBuilder(OperaDriverSupplier supplier)
You may build a new Opera instance by specifying an implementation of the Supplier interface. |
|
| Method Summary | |
|---|---|
OperaDriver |
get()
Retrieves an instance of OperaDriver. |
OperaDriverBuilder |
modifyLogLevel(Level level)
Allows you to override the logging levels specified in the capabilities. |
OperaDriverBuilder |
using(OperaSettings settings)
Allows you to specify using which capabilities you'd like the driver to be instantiated with. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperaDriverBuilder()
OperaDriver instance object with the default
desired capabilities specified in Selenium's DesiredCapabilities.opera().
public OperaDriverBuilder(OperaDriverSupplier 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 OperaDriverBuilder(Class<? extends OperaDriver> driverImplementation)
driverImplementation - class reference to driver implementation| Method Detail |
|---|
public OperaDriverBuilder using(OperaSettings settings)
settings - capabilities for the driver
public OperaDriverBuilder modifyLogLevel(Level level)
level - the logging level you wish the driver to use
public OperaDriver get()
OperaDriver.
get in interface com.google.common.base.Supplier<OperaDriver>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||