public class OperaDriverService extends DriverService
| 限定符和类型 | 类和说明 |
|---|---|
static class |
OperaDriverService.Builder
Builder used to configure new
OperaDriverService instances. |
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
OPERA_DRIVER_EXE_PROPERTY
System property that defines the location of the operadriver executable that will be used by
the
default service. |
static String |
OPERA_DRIVER_LOG_PROPERTY
System property that defines the location of the log that will be written by
the
default service. |
static String |
OPERA_DRIVER_SILENT_OUTPUT_PROPERTY
Boolean system property that defines whether the OperaDriver executable should be started
in silent mode.
|
static String |
OPERA_DRIVER_VERBOSE_LOG_PROPERTY
Boolean system property that defines whether the OperaDriver executable should be started
with verbose logging.
|
| 构造器和说明 |
|---|
OperaDriverService(File executable,
int port,
com.google.common.collect.ImmutableList<String> args,
com.google.common.collect.ImmutableMap<String,String> environment) |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperaDriverService |
createDefaultService()
Configures and returns a new
OperaDriverService using the default configuration. |
getUrl, isRunning, start, stoppublic static final String OPERA_DRIVER_EXE_PROPERTY
default service.public static final String OPERA_DRIVER_LOG_PROPERTY
default service.public static final String OPERA_DRIVER_VERBOSE_LOG_PROPERTY
public OperaDriverService(File executable, int port, com.google.common.collect.ImmutableList<String> args, com.google.common.collect.ImmutableMap<String,String> environment) throws IOException
executable - The operadriver executable.port - Which port to start the operadriver on.args - The arguments to the launched server.environment - The environment for the launched server.IOException - If an I/O error occurs.public static OperaDriverService createDefaultService()
OperaDriverService using the default configuration. In
this configuration, the service will use the operadriver executable identified by the
OPERA_DRIVER_EXE_PROPERTY system property. Each service created by this method will
be configured to use a free port on the current system.