Class OperaDriverService
Exposes the service provided by the native OperaDriver executable.
public sealed class OperaDriverService : DriverService, ICommandServer, IDisposable
- Inheritance
-
OperaDriverService
- Implements
- Inherited Members
Properties
AndroidDebugBridgePort
Gets or sets the port on which the Android Debug Bridge is listening for commands.
public int AndroidDebugBridgePort { get; set; }
Property Value
CommandLineArguments
Gets the command-line arguments for the driver service.
protected override string CommandLineArguments { get; }
Property Value
EnableVerboseLogging
Gets or sets a value indicating whether to enable verbose logging for the OperaDriver executable. Defaults to false.
public bool EnableVerboseLogging { get; set; }
Property Value
LogPath
Gets or sets the location of the log file written to by the OperaDriver executable.
public string LogPath { get; set; }
Property Value
PortServerAddress
Gets or sets the address of a server to contact for reserving a port.
public string PortServerAddress { get; set; }
Property Value
UrlPathPrefix
Gets or sets the base URL path prefix for commands (e.g., "wd/url").
public string UrlPathPrefix { get; set; }
Property Value
Methods
CreateDefaultService()
Creates a default instance of the OperaDriverService.
public static OperaDriverService CreateDefaultService()
Returns
- OperaDriverService
A OperaDriverService that implements default settings.
CreateDefaultService(string)
Creates a default instance of the OperaDriverService using a specified path to the OperaDriver executable.
public static OperaDriverService CreateDefaultService(string driverPath)
Parameters
driverPath
stringThe directory containing the OperaDriver executable.
Returns
- OperaDriverService
A OperaDriverService using a random port.
CreateDefaultService(string, string)
Creates a default instance of the OperaDriverService using a specified path to the OperaDriver executable with the given name.
public static OperaDriverService CreateDefaultService(string driverPath, string driverExecutableFileName)
Parameters
driverPath
stringThe directory containing the OperaDriver executable.
driverExecutableFileName
stringThe name of the OperaDriver executable file.
Returns
- OperaDriverService
A OperaDriverService using a random port.