public class FirefoxDriver extends 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 |
RemoteWebDriver.RemoteTargetLocator, RemoteWebDriver.RemoteWebDriverOptions, RemoteWebDriver.WhenWebDriver.ImeHandler, WebDriver.Navigation, WebDriver.Options, WebDriver.TargetLocator, WebDriver.Timeouts, 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(Capabilities desiredCapabilities) |
FirefoxDriver(Capabilities desiredCapabilities,
Capabilities requiredCapabilities)
Deprecated.
|
FirefoxDriver(FirefoxBinary binary)
Deprecated.
|
FirefoxDriver(FirefoxBinary binary,
FirefoxProfile profile)
Deprecated.
|
FirefoxDriver(FirefoxBinary binary,
FirefoxProfile profile,
Capabilities capabilities)
Deprecated.
|
FirefoxDriver(FirefoxBinary binary,
FirefoxProfile profile,
Capabilities desiredCapabilities,
Capabilities requiredCapabilities)
Deprecated.
|
FirefoxDriver(FirefoxOptions options) |
FirefoxDriver(FirefoxProfile profile)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setFileDetector(FileDetector detector)
Set the file detector to be used when sending keyboard input.
|
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, toStringpublic 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).@Deprecated public FirefoxDriver(FirefoxProfile profile)
FirefoxOptions.setProfile(FirefoxProfile).@Deprecated public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile)
FirefoxOptions.setBinary(FirefoxBinary), and
FirefoxOptions.setProfile(FirefoxProfile).public FirefoxDriver(Capabilities desiredCapabilities)
@Deprecated public FirefoxDriver(Capabilities desiredCapabilities, Capabilities requiredCapabilities)
FirefoxDriver(FirefoxOptions)@Deprecated public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile, Capabilities capabilities)
FirefoxOptions.setBinary(FirefoxBinary),
FirefoxOptions.setProfile(FirefoxProfile)@Deprecated public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile, Capabilities desiredCapabilities, Capabilities requiredCapabilities)
FirefoxOptions.setBinary(FirefoxBinary),
FirefoxOptions.setProfile(FirefoxProfile)public void setFileDetector(FileDetector detector)
RemoteWebDriversetFileDetector in class RemoteWebDriverdetector - The detector to use. Must not be null.FileDetector,
LocalFileDetector,
UselessFileDetector