Class to manage options specific to FirefoxDriver
Inheritance Hierarchy
OpenQA.SeleniumDriverOptions
OpenQA.Selenium.FirefoxFirefoxOptions
Namespace: OpenQA.Selenium.Firefox
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0
Syntax
The FirefoxOptions type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | FirefoxOptions |
Initializes a new instance of the FirefoxOptions class.
|
Properties
Name | Description | |
---|---|---|
![]() | BrowserExecutableLocation |
Gets or sets the path and file name of the Firefox browser executable.
|
![]() | LogLevel |
Gets or sets the logging level of the Firefox driver.
|
![]() | Profile |
Gets or sets the FirefoxProfile object to be used with this instance.
|
![]() | UseLegacyImplementation |
Gets or sets a value indicating whether to use the legacy driver implementation.
|
Methods
Name | Description | |
---|---|---|
![]() | AddAdditionalCapability(String, Object) |
Provides a means to add additional capabilities not yet added as type safe options
for the Chrome 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 Firefox driver.
|
![]() | AddArgument |
Adds an argument to be used in launching the Firefox browser.
|
![]() | AddArguments(IEnumerableString) |
Adds a list arguments to be used in launching the Firefox browser.
|
![]() | AddArguments(String) |
Adds a list arguments to be used in launching the Firefox browser.
|
![]() | 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.) |
![]() | SetPreference(String, Boolean) |
Sets a preference in the profile used by Firefox.
|
![]() | SetPreference(String, Double) |
Sets a preference in the profile used by Firefox.
|
![]() | SetPreference(String, Int32) |
Sets a preference in the profile used by Firefox.
|
![]() | SetPreference(String, Int64) |
Sets a preference in the profile used by Firefox.
|
![]() | SetPreference(String, String) |
Sets a preference in the profile used by Firefox.
|
![]() | ToCapabilities |
Returns DesiredCapabilities for Firefox 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.) |
Remarks
Examples
FirefoxOptions options = new FirefoxOptions();
For use with FirefoxDriver:
FirefoxDriver driver = new FirefoxDriver(options);
For use with RemoteWebDriver:
RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), options.ToCapabilities());
See Also