public class InternetExplorerDriver extends RemoteWebDriver
RemoteWebDriver.WhenWebDriver.ImeHandler, WebDriver.Navigation, WebDriver.Options, WebDriver.TargetLocator, WebDriver.Timeouts, WebDriver.Window| 限定符和类型 | 字段和说明 |
|---|---|
static String |
BROWSER_ATTACH_TIMEOUT
Capability that defines timeout in milliseconds for attaching to new browser window.
|
static String |
ELEMENT_SCROLL_BEHAVIOR
Capability that defines how elements are scrolled into view in the InternetExplorerDriver.
|
static String |
ENABLE_ELEMENT_CACHE_CLEANUP
Capability that defines to use or not cleanup of element cache on document loading.
|
static String |
ENABLE_PERSISTENT_HOVERING
Capability that defines to use persistent hovering or not.
|
static String |
EXTRACT_PATH
Capability that defines full path to directory to which will be
extracted supporting files of the IEDriverServer.
|
static String |
FORCE_CREATE_PROCESS
Capability that defines launch API of IE used by IEDriverServer.
|
static String |
HOST
Capability that defines the address of the host adapter on which
the IEDriverServer will listen for commands.
|
static String |
IE_ENSURE_CLEAN_SESSION
Capability that defines to clean or not browser cache before launching IE by IEDriverServer.
|
static String |
IE_SWITCHES
Capability that defines used IE CLI switches when
FORCE_CREATE_PROCESS is enabled. |
static String |
IE_USE_PRE_PROCESS_PROXY
Capability that defines setting the proxy information for a single IE process
without affecting the proxy settings of other instances of IE.
|
static String |
IGNORE_ZOOM_SETTING
Capability that defines whether to ignore the browser zoom level or not.
|
static String |
INITIAL_BROWSER_URL
Capability that defines the initial URL to be used when IE is launched.
|
static String |
INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS
Capability that defines to ignore ot not browser
protected mode settings during starting by IEDriverServer.
|
static String |
LOG_FILE
Capability that defines the location of the file where IEDriverServer
should write log messages to.
|
static String |
LOG_LEVEL
Capability that defines the detalization level the IEDriverServer logs.
|
static String |
NATIVE_EVENTS
Capability that defines to use whether to use native or javascript events during operations.
|
static String |
REQUIRE_WINDOW_FOCUS
Capability that defines to focus to browser window or not before operation.
|
static String |
SILENT
Capability that defines suppress or not diagnostic output of the IEDriverServer.
|
static String |
UNEXPECTED_ALERT_BEHAVIOR
Capability that defines which behaviour will be used if an unexpected Alert is found.
|
| 构造器和说明 |
|---|
InternetExplorerDriver() |
InternetExplorerDriver(Capabilities capabilities) |
InternetExplorerDriver(int port) |
InternetExplorerDriver(InternetExplorerDriverService service) |
InternetExplorerDriver(InternetExplorerDriverService service,
Capabilities capabilities) |
InternetExplorerDriver(InternetExplorerDriverService service,
Capabilities capabilities,
int port) |
| 限定符和类型 | 方法和说明 |
|---|---|
<X> X |
getScreenshotAs(OutputType<X> target)
Capture the screenshot and store it in the specified location.
|
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, manage, navigate, quit, setErrorHandler, setLogLevel, switchTo, toStringpublic static final String IGNORE_ZOOM_SETTING
public static final String NATIVE_EVENTS
public static final String INITIAL_BROWSER_URL
public static final String ELEMENT_SCROLL_BEHAVIOR
public static final String UNEXPECTED_ALERT_BEHAVIOR
public static final String ENABLE_ELEMENT_CACHE_CLEANUP
public static final String BROWSER_ATTACH_TIMEOUT
public static final String INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS
public static final String ENABLE_PERSISTENT_HOVERING
public static final String REQUIRE_WINDOW_FOCUS
public static final String LOG_FILE
public static final String LOG_LEVEL
public static final String HOST
public static final String EXTRACT_PATH
public static final String SILENT
public static final String FORCE_CREATE_PROCESS
public static final String IE_ENSURE_CLEAN_SESSION
public static final String IE_USE_PRE_PROCESS_PROXY
public static final String IE_SWITCHES
FORCE_CREATE_PROCESS is enabled.public InternetExplorerDriver()
public InternetExplorerDriver(Capabilities capabilities)
public InternetExplorerDriver(int port)
public InternetExplorerDriver(InternetExplorerDriverService service)
public InternetExplorerDriver(InternetExplorerDriverService service, Capabilities capabilities)
public InternetExplorerDriver(InternetExplorerDriverService service, Capabilities capabilities, int port)
public void setFileDetector(FileDetector detector)
RemoteWebDriversetFileDetector 在类中 RemoteWebDriverdetector - The detector to use. Must not be null.FileDetector,
LocalFileDetector,
UselessFileDetectorpublic <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