Class FirefoxOptions

java.lang.Object
org.openqa.selenium.MutableCapabilities
org.openqa.selenium.remote.AbstractDriverOptions<FirefoxOptions>
org.openqa.selenium.firefox.FirefoxOptions
All Implemented Interfaces:
Serializable, org.openqa.selenium.Capabilities

public class FirefoxOptions extends org.openqa.selenium.remote.AbstractDriverOptions<FirefoxOptions>
Manage firefox specific settings in a way that geckodriver can understand.

An example of usage:

    FirefoxOptions options = new FirefoxOptions()
      .addPreference("browser.startup.page", 1)
      .addPreference("browser.startup.homepage", "https://www.google.co.uk");
    WebDriver driver = new FirefoxDriver(options);
 
See Also:
  • Field Details

  • Constructor Details

    • FirefoxOptions

      public FirefoxOptions()
    • FirefoxOptions

      public FirefoxOptions(org.openqa.selenium.Capabilities source)
  • Method Details