Package org.openqa.selenium.firefox

Class FirefoxOptions

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

public classFirefoxOptionsextendsAbstractDriverOptions<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: