|
||||||||||
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.RemoteMouse, RemoteWebDriver.RemoteTargetLocator, RemoteWebDriver.RemoteWebDriverOptions |
Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver |
---|
WebDriver.ImeHandler, WebDriver.Navigation, WebDriver.Options, WebDriver.TargetLocator, WebDriver.Timeouts |
Field Summary | |
---|---|
static boolean |
ACCEPT_UNTRUSTED_CERTIFICATES
|
static boolean |
ASSUME_UNTRUSTED_ISSUER
|
protected FirefoxBinary |
binary
|
static String |
BINARY
|
static boolean |
DEFAULT_ENABLE_NATIVE_EVENTS
|
static 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,
String host)
|
|
|
getScreenshotAs(OutputType<X> target)
Capture the screenshot and store it in the specified location. |
|
protected FirefoxWebElement |
newRemoteWebElement()
Creates a new RemoteWebElement that is a child of this instance. |
|
protected Lock |
obtainLock()
|
|
void |
saveScreenshot(File pngFile)
Deprecated. Use getScreenshotAs(file), which returns a temporary file. |
|
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, toString, wait, wait, wait |
Field Detail |
---|
public static final String BINARY
public static final String PROFILE
public static final boolean DEFAULT_ENABLE_NATIVE_EVENTS
public static final boolean ACCEPT_UNTRUSTED_CERTIFICATES
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 |
---|
protected void startClient()
RemoteWebDriver
starting 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, String host)
protected Lock obtainLock()
protected void stopClient()
RemoteWebDriver
RemoteWebDriver.quit()
command. Subtypes
stopClient
in class RemoteWebDriver
protected FirefoxWebElement newRemoteWebElement()
RemoteWebDriver
RemoteWebElement
that is a child of this instance.
Subtypes should override this method to customize the type of
RemoteWebElement returned.
newRemoteWebElement
in class RemoteWebDriver
public <X> X getScreenshotAs(OutputType<X> target)
TakesScreenshot
getScreenshotAs
in interface TakesScreenshot
X
- Return type for getScreenshotAs.target
- target type, @see OutputType
@Deprecated public void saveScreenshot(File pngFile)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |