Package org.openqa.selenium.opera
Class OperaDriverService
- java.lang.Object
-
- org.openqa.selenium.remote.service.DriverService
-
- org.openqa.selenium.opera.OperaDriverService
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class OperaDriverService extends org.openqa.selenium.remote.service.DriverService
Manages the life and death of a operadriver server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OperaDriverService.Builder
Builder used to configure newOperaDriverService
instances.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OPERA_DRIVER_EXE_PROPERTY
System property that defines the location of the operadriver executable that will be used by thedefault service
.static java.lang.String
OPERA_DRIVER_LOG_PROPERTY
System property that defines the location of the log that will be written by thedefault service
.static java.lang.String
OPERA_DRIVER_SILENT_OUTPUT_PROPERTY
Boolean system property that defines whether the OperaDriver executable should be started in silent mode.static java.lang.String
OPERA_DRIVER_VERBOSE_LOG_PROPERTY
Boolean system property that defines whether the OperaDriver executable should be started with verbose logging.
-
Constructor Summary
Constructors Constructor Description OperaDriverService(java.io.File executable, int port, java.time.Duration timeout, java.util.List<java.lang.String> args, java.util.Map<java.lang.String,java.lang.String> environment)
OperaDriverService(java.io.File executable, int port, java.util.List<java.lang.String> args, java.util.Map<java.lang.String,java.lang.String> environment)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OperaDriverService
createDefaultService()
Configures and returns a newOperaDriverService
using the default configuration.
-
-
-
Field Detail
-
OPERA_DRIVER_EXE_PROPERTY
public static final java.lang.String OPERA_DRIVER_EXE_PROPERTY
System property that defines the location of the operadriver executable that will be used by thedefault service
.- See Also:
- Constant Field Values
-
OPERA_DRIVER_LOG_PROPERTY
public static final java.lang.String OPERA_DRIVER_LOG_PROPERTY
System property that defines the location of the log that will be written by thedefault service
.- See Also:
- Constant Field Values
-
OPERA_DRIVER_VERBOSE_LOG_PROPERTY
public static final java.lang.String OPERA_DRIVER_VERBOSE_LOG_PROPERTY
Boolean system property that defines whether the OperaDriver executable should be started with verbose logging.- See Also:
- Constant Field Values
-
OPERA_DRIVER_SILENT_OUTPUT_PROPERTY
public static final java.lang.String OPERA_DRIVER_SILENT_OUTPUT_PROPERTY
Boolean system property that defines whether the OperaDriver executable should be started in silent mode.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OperaDriverService
public OperaDriverService(java.io.File executable, int port, java.util.List<java.lang.String> args, java.util.Map<java.lang.String,java.lang.String> environment) throws java.io.IOException
- Parameters:
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.- Throws:
java.io.IOException
- If an I/O error occurs.
-
OperaDriverService
public OperaDriverService(java.io.File executable, int port, java.time.Duration timeout, java.util.List<java.lang.String> args, java.util.Map<java.lang.String,java.lang.String> environment) throws java.io.IOException
- Parameters:
executable
- The operadriver executable.port
- Which port to start the operadriver on.timeout
- Timeout waiting for driver server to start.args
- The arguments to the launched server.environment
- The environment for the launched server.- Throws:
java.io.IOException
- If an I/O error occurs.
-
-
Method Detail
-
createDefaultService
public static OperaDriverService createDefaultService()
Configures and returns a newOperaDriverService
using the default configuration. In this configuration, the service will use the operadriver executable identified by theOPERA_DRIVER_EXE_PROPERTY
system property. Each service created by this method will be configured to use a free port on the current system.- Returns:
- A new OperaDriverService using the default configuration.
-
-