Package org.openqa.selenium.firefox

Class FirefoxDriver

java.lang.Object
org.openqa.selenium.remote.RemoteWebDriver
org.openqa.selenium.firefox.FirefoxDriver
All Implemented Interfaces:
HasBiDi,HasFederatedCredentialManagement,HasContext,HasExtensions,HasFullPageScreenshot,HasCapabilities,HasDownloads,Interactive,JavascriptExecutor,PrintsPage,SearchContext,TakesScreenshot,HasVirtualAuthenticator,WebDriver

public classFirefoxDriverextendsRemoteWebDriverimplementsHasExtensions,HasFullPageScreenshot,HasContext,HasBiDi
An implementation of the {#link WebDriver} interface that drives Firefox.

The best way to construct aFirefoxDriver with various options is to make use of theFirefoxOptions, like so:

 FirefoxOptions options = new FirefoxOptions()     .addPreference("browser.startup.page", 1)     .addPreference("browser.startup.homepage", "https://www.google.co.uk")     .setAcceptInsecureCerts(true)     .setHeadless(true); WebDriver driver = new FirefoxDriver(options);