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.When
WebDriver.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)
Deprecated.
|
FirefoxDriver(FirefoxOptions options) |
FirefoxDriver(GeckoDriverService service) |
FirefoxDriver(GeckoDriverService service,
Capabilities desiredCapabilities)
Deprecated.
|
FirefoxDriver(GeckoDriverService service,
FirefoxOptions options) |
FirefoxDriver(XpiDriverService service) |
FirefoxDriver(XpiDriverService service,
FirefoxOptions options) |
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, startSession, 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()
@Deprecated public FirefoxDriver(Capabilities desiredCapabilities)
FirefoxDriver(FirefoxOptions)
.@Deprecated public FirefoxDriver(GeckoDriverService service, Capabilities desiredCapabilities)
FirefoxDriver(GeckoDriverService, FirefoxOptions)
.public FirefoxDriver(FirefoxOptions options)
public FirefoxDriver(GeckoDriverService service)
public FirefoxDriver(XpiDriverService service)
public FirefoxDriver(GeckoDriverService service, FirefoxOptions options)
public FirefoxDriver(XpiDriverService service, FirefoxOptions options)
public void setFileDetector(FileDetector detector)
RemoteWebDriver
setFileDetector
in class RemoteWebDriver
detector
- The detector to use. Must not be null.FileDetector
,
LocalFileDetector
,
UselessFileDetector