public class FirefoxDriver extends RemoteWebDriver implements Killable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
FirefoxDriver.LazyCommandExecutor |
static class |
FirefoxDriver.SystemProperty |
RemoteWebDriver.WhenWebDriver.ImeHandler, WebDriver.Navigation, WebDriver.Options, WebDriver.TargetLocator, WebDriver.Timeouts, WebDriver.Window| 限定符和类型 | 字段和说明 |
|---|---|
static boolean |
ACCEPT_UNTRUSTED_CERTIFICATES
已过时。
|
static boolean |
ASSUME_UNTRUSTED_ISSUER
已过时。
|
static String |
BINARY |
static boolean |
DEFAULT_ENABLE_NATIVE_EVENTS |
static String |
MARIONETTE |
static String |
PROFILE |
| 构造器和说明 |
|---|
FirefoxDriver() |
FirefoxDriver(Capabilities desiredCapabilities) |
FirefoxDriver(Capabilities desiredCapabilities,
Capabilities requiredCapabilities) |
FirefoxDriver(FirefoxBinary binary,
FirefoxProfile profile) |
FirefoxDriver(FirefoxBinary binary,
FirefoxProfile profile,
Capabilities capabilities) |
FirefoxDriver(FirefoxBinary binary,
FirefoxProfile profile,
Capabilities desiredCapabilities,
Capabilities requiredCapabilities) |
FirefoxDriver(FirefoxProfile profile) |
FirefoxDriver(GeckoDriverService driverService,
Capabilities desiredCapabilities,
Capabilities requiredCapabilities) |
| 限定符和类型 | 方法和说明 |
|---|---|
<X> X |
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
|
void |
setFileDetector(FileDetector detector)
Set the file detector to be used when sending keyboard input.
|
close, executeAsyncScript, executeScript, findElement, findElementByClassName, findElementByCssSelector, findElementById, findElementByLinkText, findElementByName, findElementByPartialLinkText, findElementByTagName, findElementByXPath, findElements, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, get, getCapabilities, getCommandExecutor, getCurrentUrl, getErrorHandler, getFileDetector, getKeyboard, getMouse, getPageSource, getSessionId, getTitle, getWindowHandle, getWindowHandles, navigate, quit, setErrorHandler, setLogLevel, switchTo, toStringpublic static final boolean DEFAULT_ENABLE_NATIVE_EVENTS
@Deprecated public static final boolean ACCEPT_UNTRUSTED_CERTIFICATES
@Deprecated public static final boolean ASSUME_UNTRUSTED_ISSUER
public FirefoxDriver()
public FirefoxDriver(FirefoxProfile profile)
public FirefoxDriver(Capabilities desiredCapabilities)
public FirefoxDriver(Capabilities desiredCapabilities, Capabilities requiredCapabilities)
public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile)
public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile, Capabilities capabilities)
public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile, Capabilities desiredCapabilities, Capabilities requiredCapabilities)
public FirefoxDriver(GeckoDriverService driverService, Capabilities desiredCapabilities, Capabilities requiredCapabilities)
public void setFileDetector(FileDetector detector)
RemoteWebDriversetFileDetector 在类中 RemoteWebDriverdetector - The detector to use. Must not be null.FileDetector,
LocalFileDetector,
UselessFileDetectorpublic void kill()
public WebDriver.Options manage()
WebDrivermanage 在接口中 WebDrivermanage 在类中 RemoteWebDriverWebDriver.Optionspublic <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 visible portion of the HTML element
getScreenshotAs 在接口中 TakesScreenshotgetScreenshotAs 在类中 RemoteWebDriverX - Return type for getScreenshotAs.target - target type, @see OutputType