|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openqa.selenium.remote.RemoteWebDriver
org.openqa.selenium.firefox.FirefoxDriver
public class FirefoxDriver
An implementation of the {#link WebDriver} interface that drives Firefox. This works through a firefox extension, which gets installed automatically if necessary. Important system variables are:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.openqa.selenium.remote.RemoteWebDriver |
|---|
RemoteWebDriver.RemoteTargetLocator, RemoteWebDriver.RemoteWebDriverOptions, RemoteWebDriver.When |
| Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver |
|---|
WebDriver.ImeHandler, WebDriver.Navigation, WebDriver.Options, WebDriver.TargetLocator, WebDriver.Timeouts, WebDriver.Window |
| Field Summary | |
|---|---|
static boolean |
ACCEPT_UNTRUSTED_CERTIFICATES
Deprecated. |
static boolean |
ASSUME_UNTRUSTED_ISSUER
Deprecated. |
protected FirefoxBinary |
binary
|
static java.lang.String |
BINARY
|
static boolean |
DEFAULT_ENABLE_NATIVE_EVENTS
|
static java.lang.String |
PROFILE
|
| Constructor Summary | |
|---|---|
FirefoxDriver()
|
|
FirefoxDriver(Capabilities capabilities)
|
|
FirefoxDriver(FirefoxBinary binary,
FirefoxProfile profile)
|
|
FirefoxDriver(FirefoxProfile profile)
|
|
| Method Summary | ||
|---|---|---|
protected ExtensionConnection |
connectTo(FirefoxBinary binary,
FirefoxProfile profile,
java.lang.String host)
|
|
|
getScreenshotAs(OutputType<X> target)
Capture the screenshot and store it in the specified location. |
|
void |
kill()
Attempt to forcibly kill this Killable at the OS level. |
|
WebDriver.Options |
manage()
Gets the Option interface |
|
protected Lock |
obtainLock()
|
|
protected void |
startClient()
Method called before starting a new session. |
|
protected void |
stopClient()
Method called after executing a RemoteWebDriver.quit() command. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String BINARY
public static final java.lang.String PROFILE
public static final boolean DEFAULT_ENABLE_NATIVE_EVENTS
@Deprecated public static final boolean ACCEPT_UNTRUSTED_CERTIFICATES
@Deprecated public static final boolean ASSUME_UNTRUSTED_ISSUER
protected FirefoxBinary binary
| Constructor Detail |
|---|
public FirefoxDriver()
public FirefoxDriver(FirefoxProfile profile)
public FirefoxDriver(Capabilities capabilities)
public FirefoxDriver(FirefoxBinary binary,
FirefoxProfile profile)
| Method Detail |
|---|
public void kill()
kill in interface Killablepublic WebDriver.Options manage()
WebDriver
manage in interface WebDrivermanage in class RemoteWebDriverWebDriver.Optionsprotected void startClient()
RemoteWebDriverstarting a new session. The default
implementation is a no-op, but subtypes should override this method to define custom behavior.
startClient in class RemoteWebDriver
protected ExtensionConnection connectTo(FirefoxBinary binary,
FirefoxProfile profile,
java.lang.String host)
protected Lock obtainLock()
protected void stopClient()
RemoteWebDriverRemoteWebDriver.quit() command. Subtypes
stopClient in class RemoteWebDriverpublic <X> X getScreenshotAs(OutputType<X> target)
TakesScreenshotFor WebDriver extending TakesScreenshot, this makes a best effort depending on the browser to return the following in order of preference:
For WebElement extending TakesScreenshot, this makes a best effort depending on the browser to return the following in order of preference: - The entire content of the HTML element - The visisble portion of the HTML element
getScreenshotAs in interface TakesScreenshotX - Return type for getScreenshotAs.target - target type, @see OutputType
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||