FirefoxOptions ClassWebDriver
Class to manage options specific to FirefoxDriver
Inheritance Hierarchy

SystemObject
  OpenQA.SeleniumDriverOptions
    OpenQA.Selenium.FirefoxFirefoxOptions

Namespace: OpenQA.Selenium.Firefox
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0
Syntax

public class FirefoxOptions : DriverOptions

The FirefoxOptions type exposes the following members.

Constructors

  NameDescription
Public methodFirefoxOptions
Initializes a new instance of the FirefoxOptions class.
Top
Properties

  NameDescription
Public propertyBrowserExecutableLocation
Gets or sets the path and file name of the Firefox browser executable.
Public propertyLogLevel
Gets or sets the logging level of the Firefox driver.
Public propertyProfile
Gets or sets the FirefoxProfile object to be used with this instance.
Public propertyUseLegacyImplementation
Gets or sets a value indicating whether to use the legacy driver implementation.
Top
Methods

  NameDescription
Public methodAddAdditionalCapability(String, Object)
Provides a means to add additional capabilities not yet added as type safe options for the Chrome driver.
(Overrides DriverOptionsAddAdditionalCapability(String, Object).)
Public methodAddAdditionalCapability(String, Object, Boolean)
Provides a means to add additional capabilities not yet added as type safe options for the Firefox driver.
Public methodAddArgument
Adds an argument to be used in launching the Firefox browser.
Public methodAddArguments(IEnumerableString)
Adds a list arguments to be used in launching the Firefox browser.
Public methodAddArguments(String)
Adds a list arguments to be used in launching the Firefox browser.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGenerateLoggingPreferencesDictionary
Generates the logging preferences dictionary for transmission as a desired capability.
(Inherited from DriverOptions.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetLoggingPreference
Sets the logging preferences for this driver.
(Inherited from DriverOptions.)
Public methodSetPreference(String, Boolean)
Sets a preference in the profile used by Firefox.
Public methodSetPreference(String, Double)
Sets a preference in the profile used by Firefox.
Public methodSetPreference(String, Int32)
Sets a preference in the profile used by Firefox.
Public methodSetPreference(String, Int64)
Sets a preference in the profile used by Firefox.
Public methodSetPreference(String, String)
Sets a preference in the profile used by Firefox.
Public methodToCapabilities
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.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Remarks

Used with the marionette executable wires.exe.
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

Reference