public class FirefoxDriver
extends org.openqa.selenium.remote.RemoteWebDriver
The best way to construct a FirefoxDriver
with various options is to make use of the
FirefoxOptions
, like so:
FirefoxOptions options = new FirefoxOptions() .setProfile(new FirefoxProfile()); WebDriver driver = new FirefoxDriver(options);
Modifier and Type | Class and Description |
---|---|
static class |
FirefoxDriver.SystemProperty |
org.openqa.selenium.remote.RemoteWebDriver.RemoteTargetLocator, org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions, org.openqa.selenium.remote.RemoteWebDriver.When
org.openqa.selenium.WebDriver.ImeHandler, org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window
Modifier and Type | Field and Description |
---|---|
protected FirefoxBinary |
binary |
static java.lang.String |
BINARY |
static java.lang.String |
MARIONETTE |
static java.lang.String |
PROFILE |
Constructor and Description |
---|
FirefoxDriver() |
FirefoxDriver(org.openqa.selenium.Capabilities desiredCapabilities) |
FirefoxDriver(org.openqa.selenium.Capabilities desiredCapabilities,
org.openqa.selenium.Capabilities requiredCapabilities)
Deprecated.
|
FirefoxDriver(FirefoxBinary binary)
Deprecated.
|
FirefoxDriver(FirefoxBinary binary,
FirefoxProfile profile)
Deprecated.
|
FirefoxDriver(FirefoxBinary binary,
FirefoxProfile profile,
org.openqa.selenium.Capabilities capabilities)
Deprecated.
|
FirefoxDriver(FirefoxBinary binary,
FirefoxProfile profile,
org.openqa.selenium.Capabilities desiredCapabilities,
org.openqa.selenium.Capabilities requiredCapabilities)
Deprecated.
|
FirefoxDriver(FirefoxOptions options) |
FirefoxDriver(FirefoxProfile profile) |
Modifier and Type | Method and Description |
---|---|
void |
setFileDetector(org.openqa.selenium.remote.FileDetector detector) |
close, execute, execute, executeAsyncScript, executeScript, findElement, findElement, findElementByClassName, findElementByCssSelector, findElementById, findElementByLinkText, findElementByName, findElementByPartialLinkText, findElementByTagName, findElementByXPath, findElements, findElements, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, get, getCapabilities, getCommandExecutor, getCurrentUrl, getElementConverter, getErrorHandler, getExecuteMethod, getFileDetector, getKeyboard, getMouse, getPageSource, getScreenshotAs, getSessionId, getTitle, getWindowHandle, getWindowHandles, log, manage, navigate, perform, quit, resetInputState, setCommandExecutor, setElementConverter, setErrorHandler, setFoundBy, setLogLevel, setSessionId, startClient, startClient, startClient, startSession, startSession, stopClient, stopClient, stopClient, switchTo, toString
public static final java.lang.String BINARY
public static final java.lang.String PROFILE
public static final java.lang.String MARIONETTE
protected FirefoxBinary binary
public FirefoxDriver()
public FirefoxDriver(FirefoxOptions options)
@Deprecated public FirefoxDriver(FirefoxBinary binary)
FirefoxOptions.setBinary(FirefoxBinary)
.public FirefoxDriver(FirefoxProfile profile)
@Deprecated public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile)
FirefoxOptions.setBinary(FirefoxBinary)
, and
FirefoxOptions.setProfile(FirefoxProfile)
.public FirefoxDriver(org.openqa.selenium.Capabilities desiredCapabilities)
@Deprecated public FirefoxDriver(org.openqa.selenium.Capabilities desiredCapabilities, org.openqa.selenium.Capabilities requiredCapabilities)
FirefoxDriver(FirefoxOptions)
@Deprecated public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile, org.openqa.selenium.Capabilities capabilities)
FirefoxOptions.setBinary(FirefoxBinary)
,
FirefoxOptions.setProfile(FirefoxProfile)
@Deprecated public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile, org.openqa.selenium.Capabilities desiredCapabilities, org.openqa.selenium.Capabilities requiredCapabilities)
FirefoxOptions.setBinary(FirefoxBinary)
,
FirefoxOptions.setProfile(FirefoxProfile)