public class InternetExplorerDriver extends RemoteWebDriver implements TakesScreenshot
RemoteWebDriver.RemoteTargetLocator, RemoteWebDriver.RemoteWebDriverOptions, RemoteWebDriver.When
WebDriver.ImeHandler, WebDriver.Navigation, WebDriver.Options, WebDriver.TargetLocator, WebDriver.Timeouts, WebDriver.Window
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BROWSER_ATTACH_TIMEOUT
Capability that defines timeout in milliseconds for attaching to new browser window.
|
static java.lang.String |
ELEMENT_SCROLL_BEHAVIOR
Capability that defines initial browser URL.
|
static java.lang.String |
ENABLE_ELEMENT_CACHE_CLEANUP
Capability that defines to use or not cleanup of element cache on document loading.
|
static java.lang.String |
ENABLE_PERSISTENT_HOVERING
Capability that defines to use persistent hovering or not.
|
static java.lang.String |
EXTRACT_PATH
Capability that defines full path to directory to which will be
extracted supporting files of the IEDriverServer.
|
static java.lang.String |
FORCE_CREATE_PROCESS
Capability that defines launch API of IE used by IEDriverServer.
|
static java.lang.String |
HOST
Capability that defines the address of the host adapter on which
the IEDriverServer will listen for commands.
|
static java.lang.String |
IE_ENSURE_CLEAN_SESSION
Capability that defines to clean browser cache before launching IE by IEDriverServer.
|
static java.lang.String |
IE_SET_PROXY_BY_SERVER
Deprecated.
please set this option as True and allow IEDriverServer sets up proxy.
In next releases it will be set to True by default.
Capability that defines used proxy setter. Currently it's False by default.
False means WindowsProxyManager will be used for setting proxy settings.
True means IEDriverServer will be used for setting proxy settings.
Be note that using both variants in concurrent drivers at the same node
may lead to undefined behaviour.
|
static java.lang.String |
IE_SWITCHES
Capability that defines used IE CLI switches.
|
static java.lang.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 java.lang.String |
IGNORE_ZOOM_SETTING
Capability that defines to ignore or not browser zoom level.
|
static java.lang.String |
INITIAL_BROWSER_URL
Capability that defines to ignore or not browser zoom level.
|
static java.lang.String |
INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS
Capability that defines to ignore ot not browser
protected mode settings during starting by IEDriverServer.
|
static java.lang.String |
LOG_FILE
Capability that defines the location of the file where IEDriverServer
should write log messages to.
|
static java.lang.String |
LOG_LEVEL
Capability that defines the detalization level the IEDriverServer logs.
|
static java.lang.String |
NATIVE_EVENTS
Capability that defines to use native or javascript events during operations..
|
static java.lang.String |
REQUIRE_WINDOW_FOCUS
Capability that defines to focus to browser window or not before operation.
|
static java.lang.String |
SILENT
Capability that defines suppress or not diagnostic output of the IEDriverServer.
|
static java.lang.String |
UNEXPECTED_ALERT_BEHAVIOR
Capability that defines which behaviour will be used if unexpected Alert is found.
|
Constructor and Description |
---|
InternetExplorerDriver() |
InternetExplorerDriver(Capabilities capabilities) |
InternetExplorerDriver(int port) |
InternetExplorerDriver(InternetExplorerDriverService service) |
InternetExplorerDriver(InternetExplorerDriverService service,
Capabilities capabilities) |
InternetExplorerDriver(WindowsProxyManager proxy,
InternetExplorerDriverService service,
Capabilities capabilities,
int port) |
Modifier and Type | Method and Description |
---|---|
protected void |
assertOnWindows() |
<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, 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, getRemoteStatus, getSessionId, getTitle, getWindowHandle, getWindowHandles, log, manage, navigate, quit, setCommandExecutor, setElementConverter, setFoundBy, setLogLevel, setSessionId, startClient, startSession, startSession, stopClient, switchTo, toString
public static final java.lang.String IGNORE_ZOOM_SETTING
public static final java.lang.String NATIVE_EVENTS
public static final java.lang.String INITIAL_BROWSER_URL
public static final java.lang.String ELEMENT_SCROLL_BEHAVIOR
public static final java.lang.String UNEXPECTED_ALERT_BEHAVIOR
public static final java.lang.String ENABLE_ELEMENT_CACHE_CLEANUP
public static final java.lang.String BROWSER_ATTACH_TIMEOUT
public static final java.lang.String INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS
public static final java.lang.String ENABLE_PERSISTENT_HOVERING
public static final java.lang.String REQUIRE_WINDOW_FOCUS
public static final java.lang.String LOG_FILE
public static final java.lang.String LOG_LEVEL
public static final java.lang.String HOST
public static final java.lang.String EXTRACT_PATH
public static final java.lang.String SILENT
public static final java.lang.String FORCE_CREATE_PROCESS
public static final java.lang.String IE_ENSURE_CLEAN_SESSION
public static final java.lang.String IE_USE_PRE_PROCESS_PROXY
public static final java.lang.String IE_SWITCHES
@Deprecated public static final java.lang.String IE_SET_PROXY_BY_SERVER
public InternetExplorerDriver()
public InternetExplorerDriver(Capabilities capabilities)
public InternetExplorerDriver(int port)
public InternetExplorerDriver(InternetExplorerDriverService service)
public InternetExplorerDriver(InternetExplorerDriverService service, Capabilities capabilities)
public InternetExplorerDriver(WindowsProxyManager proxy, InternetExplorerDriverService service, Capabilities capabilities, int port)
public void setFileDetector(FileDetector detector)
RemoteWebDriver
setFileDetector
in class RemoteWebDriver
detector
- The detector to use. Must not be null.FileDetector
,
LocalFileDetector
,
UselessFileDetector
public <X> X getScreenshotAs(OutputType<X> target)
TakesScreenshot
For 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 TakesScreenshot
X
- Return type for getScreenshotAs.target
- target type, @see OutputTypeprotected void assertOnWindows()