public class FirefoxDriver
extends org.openqa.selenium.remote.RemoteWebDriver
implements org.openqa.selenium.internal.Killable
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);
Type | Property and Description |
---|---|
private static java.lang.Boolean |
forceMarionetteFromSystem |
Modifier and Type | Class and Description |
---|---|
static class |
FirefoxDriver.LazyCommandExecutor |
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 |
---|---|
static boolean |
ACCEPT_UNTRUSTED_CERTIFICATES
Deprecated.
|
static boolean |
ASSUME_UNTRUSTED_ISSUER
Deprecated.
|
protected FirefoxBinary |
binary |
static java.lang.String |
BINARY |
static java.lang.String |
MARIONETTE |
static java.lang.String |
PROFILE |
Modifier | Constructor and Description |
---|---|
|
FirefoxDriver() |
|
FirefoxDriver(org.openqa.selenium.Capabilities desiredCapabilities) |
|
FirefoxDriver(org.openqa.selenium.Capabilities desiredCapabilities,
org.openqa.selenium.Capabilities requiredCapabilities) |
private |
FirefoxDriver(org.openqa.selenium.remote.CommandExecutor executor,
org.openqa.selenium.Capabilities desiredCapabilities,
org.openqa.selenium.Capabilities requiredCapabilities) |
|
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) |
|
FirefoxDriver(GeckoDriverService driverService)
Deprecated.
No replacement.
|
|
FirefoxDriver(GeckoDriverService driverService,
org.openqa.selenium.Capabilities desiredCapabilities)
Deprecated.
No replacement.
|
|
FirefoxDriver(GeckoDriverService driverService,
org.openqa.selenium.Capabilities desiredCapabilities,
org.openqa.selenium.Capabilities requiredCapabilities)
Deprecated.
No replacement.
|
Modifier and Type | Method and Description |
---|---|
protected ExtensionConnection |
connectTo(FirefoxBinary binary,
FirefoxProfile profile,
java.lang.String host) |
private static org.openqa.selenium.Capabilities |
dropCapabilities(org.openqa.selenium.Capabilities capabilities)
Drops capabilities that we shouldn't send over the wire.
|
private static java.lang.Boolean |
forceMarionetteFromSystemProperty() |
private static FirefoxOptions |
getFirefoxOptions(org.openqa.selenium.Capabilities capabilities) |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> target) |
private static boolean |
isLegacy(org.openqa.selenium.Capabilities desiredCapabilities) |
void |
kill()
Attempt to forcibly kill this Killable at the OS level.
|
org.openqa.selenium.WebDriver.Options |
manage() |
protected org.openqa.selenium.internal.Lock |
obtainLock(FirefoxProfile profile) |
void |
setFileDetector(org.openqa.selenium.remote.FileDetector detector) |
protected void |
startClient(org.openqa.selenium.Capabilities desiredCapabilities,
org.openqa.selenium.Capabilities requiredCapabilities) |
protected void |
stopClient() |
private static org.openqa.selenium.remote.CommandExecutor |
toExecutor(FirefoxOptions options) |
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, getSessionId, getTitle, getWindowHandle, getWindowHandles, log, navigate, perform, quit, resetInputState, setCommandExecutor, setElementConverter, setErrorHandler, setFoundBy, setLogLevel, setSessionId, startClient, startSession, startSession, stopClient, switchTo, toString
private static java.lang.Boolean forceMarionetteFromSystemProperty
public static final java.lang.String BINARY
public static final java.lang.String PROFILE
public static final java.lang.String MARIONETTE
@Deprecated public static final boolean ACCEPT_UNTRUSTED_CERTIFICATES
@Deprecated public static final boolean ASSUME_UNTRUSTED_ISSUER
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)
public FirefoxDriver(org.openqa.selenium.Capabilities desiredCapabilities, org.openqa.selenium.Capabilities requiredCapabilities)
@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)
@Deprecated public FirefoxDriver(GeckoDriverService driverService)
@Deprecated public FirefoxDriver(GeckoDriverService driverService, org.openqa.selenium.Capabilities desiredCapabilities)
@Deprecated public FirefoxDriver(GeckoDriverService driverService, org.openqa.selenium.Capabilities desiredCapabilities, org.openqa.selenium.Capabilities requiredCapabilities)
private FirefoxDriver(org.openqa.selenium.remote.CommandExecutor executor, org.openqa.selenium.Capabilities desiredCapabilities, org.openqa.selenium.Capabilities requiredCapabilities)
private static org.openqa.selenium.remote.CommandExecutor toExecutor(FirefoxOptions options)
private static FirefoxOptions getFirefoxOptions(org.openqa.selenium.Capabilities capabilities)
public void setFileDetector(org.openqa.selenium.remote.FileDetector detector)
setFileDetector
in class org.openqa.selenium.remote.RemoteWebDriver
public void kill()
kill
in interface org.openqa.selenium.internal.Killable
public org.openqa.selenium.WebDriver.Options manage()
manage
in interface org.openqa.selenium.WebDriver
manage
in class org.openqa.selenium.remote.RemoteWebDriver
private static boolean isLegacy(org.openqa.selenium.Capabilities desiredCapabilities)
private static java.lang.Boolean forceMarionetteFromSystemProperty()
protected void startClient(org.openqa.selenium.Capabilities desiredCapabilities, org.openqa.selenium.Capabilities requiredCapabilities)
startClient
in class org.openqa.selenium.remote.RemoteWebDriver
protected ExtensionConnection connectTo(FirefoxBinary binary, FirefoxProfile profile, java.lang.String host)
protected org.openqa.selenium.internal.Lock obtainLock(FirefoxProfile profile)
protected void stopClient()
stopClient
in class org.openqa.selenium.remote.RemoteWebDriver
private static org.openqa.selenium.Capabilities dropCapabilities(org.openqa.selenium.Capabilities capabilities)
public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> target)
getScreenshotAs
in interface org.openqa.selenium.TakesScreenshot
getScreenshotAs
in class org.openqa.selenium.remote.RemoteWebDriver