Class to manage options specific to OperaDriver
Inheritance Hierarchy
OpenQA.SeleniumDriverOptions
OpenQA.Selenium.OperaOperaOptions
Namespace: OpenQA.Selenium.Opera
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0
Syntax
The OperaOptions type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | OperaOptions | Initializes a new instance of the OperaOptions class |
Properties
Name | Description | |
---|---|---|
![]() | Arguments |
Gets the list of arguments appended to the Opera command line as a string array.
|
![]() | BinaryLocation |
Gets or sets the location of the Opera browser's binary executable file.
|
![]() | DebuggerAddress |
Gets or sets the address of a Opera debugger server to connect to.
Should be of the form "{hostname|IP address}:port".
|
![]() | Extensions |
Gets the list of extensions to be installed as an array of base64-encoded strings.
|
![]() | LeaveBrowserRunning |
Gets or sets a value indicating whether Opera should be left running after the
OperaDriver instance is exited. Defaults to .
|
![]() | MinidumpPath |
Gets or sets the directory in which to store minidump files.
|
![]() | Proxy |
Gets or sets the proxy to use with this instance of Opera.
|
Methods
Name | Description | |
---|---|---|
![]() | AddAdditionalCapability(String, Object) |
Provides a means to add additional capabilities not yet added as type safe options
for the Opera driver.
(Overrides DriverOptionsAddAdditionalCapability(String, Object).) |
![]() | AddAdditionalCapability(String, Object, Boolean) |
Provides a means to add additional capabilities not yet added as type safe options
for the Opera driver.
|
![]() | AddArgument |
Adds a single argument to the list of arguments to be appended to the Opera.exe command line.
|
![]() | AddArguments(IEnumerableString) |
Adds arguments to be appended to the Opera.exe command line.
|
![]() | AddArguments(String) |
Adds arguments to be appended to the Opera.exe command line.
|
![]() | AddEncodedExtension |
Adds a base64-encoded string representing a Opera extension to the list of extensions
to be installed in the instance of Opera.
|
![]() | AddEncodedExtensions(IEnumerableString) |
Adds a list of base64-encoded strings representing Opera extensions to be installed
in the instance of Opera.
|
![]() | AddEncodedExtensions(String) |
Adds a list of base64-encoded strings representing Opera extensions to the list of extensions
to be installed in the instance of Opera.
|
![]() | AddExcludedArgument |
Adds a single argument to be excluded from the list of arguments passed by default
to the Opera.exe command line by operadriver.exe.
|
![]() | AddExcludedArguments(IEnumerableString) |
Adds arguments to be excluded from the list of arguments passed by default
to the Opera.exe command line by operadriver.exe.
|
![]() | AddExcludedArguments(String) |
Adds arguments to be excluded from the list of arguments passed by default
to the Opera.exe command line by operadriver.exe.
|
![]() | AddExtension |
Adds a path to a packed Opera extension (.crx file) to the list of extensions
to be installed in the instance of Opera.
|
![]() | AddExtensions(IEnumerableString) |
Adds a list of paths to packed Opera extensions (.crx files) to be installed
in the instance of Opera.
|
![]() | AddExtensions(String) |
Adds a list of paths to packed Opera extensions (.crx files) to be installed
in the instance of Opera.
|
![]() | AddLocalStatePreference |
Adds a preference for the local state file in the user's data directory for Opera.
If the specified preference already exists, it will be overwritten.
|
![]() | AddUserProfilePreference |
Adds a preference for the user-specific profile or "user data directory."
If the specified preference already exists, it will be overwritten.
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GenerateLoggingPreferencesDictionary |
Generates the logging preferences dictionary for transmission as a desired capability.
(Inherited from DriverOptions.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | SetLoggingPreference |
Sets the logging preferences for this driver.
(Inherited from DriverOptions.) |
![]() | ToCapabilities |
Returns DesiredCapabilities for Opera with these options included as
capabilities. This does not copy the options. Further changes will be
reflected in the returned capabilities.
(Overrides DriverOptionsToCapabilities.) |
![]() | ToString | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
![]() ![]() | Capability |
Gets the name of the capability used to store Opera options in
a DesiredCapabilities object.
|
Remarks
Examples
OperaOptions options = new OperaOptions(); options.AddExtensions("\path\to\extension.crx"); options.BinaryLocation = "\path\to\opera";
For use with OperaDriver:
OperaDriver driver = new OperaDriver(options);
For use with RemoteWebDriver:
RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), options.ToCapabilities());
See Also