Package org.openqa.selenium.ie
Class InternetExplorerDriver
- java.lang.Object
-
- org.openqa.selenium.remote.RemoteWebDriver
-
- org.openqa.selenium.ie.InternetExplorerDriver
-
- All Implemented Interfaces:
org.openqa.selenium.HasCapabilities
,org.openqa.selenium.interactions.Interactive
,org.openqa.selenium.JavascriptExecutor
,org.openqa.selenium.PrintsPage
,org.openqa.selenium.SearchContext
,org.openqa.selenium.TakesScreenshot
,org.openqa.selenium.virtualauthenticator.HasVirtualAuthenticator
,org.openqa.selenium.WebDriver
public class InternetExplorerDriver extends org.openqa.selenium.remote.RemoteWebDriver
-
-
Field Summary
Fields Modifier and Type Field 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 how elements are scrolled into view in the InternetExplorerDriver.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
FORCE_CREATE_PROCESS
Capability that defines launch API of IE used by IEDriverServer.static java.lang.String
IE_ENSURE_CLEAN_SESSION
Capability that defines to clean or not browser cache before launching IE by IEDriverServer.static java.lang.String
IE_SWITCHES
Capability that defines used IE CLI switches whenFORCE_CREATE_PROCESS
is enabled.static java.lang.String
IE_USE_PER_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 whether to ignore the browser zoom level or not.static java.lang.String
INITIAL_BROWSER_URL
Capability that defines the initial URL to be used when IE is launched.static java.lang.String
INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS
Capability that defines to ignore browser protected mode settings during starting by IEDriverServer.static java.lang.String
NATIVE_EVENTS
Deprecated.Non W3C compliantstatic java.lang.String
REQUIRE_WINDOW_FOCUS
Capability that defines to focus to browser window or not before operation.static java.lang.String
UNEXPECTED_ALERT_BEHAVIOR
Capability that defines which behaviour will be used if an unexpected Alert is found.
-
Constructor Summary
Constructors Constructor Description InternetExplorerDriver()
InternetExplorerDriver(InternetExplorerDriverService service)
InternetExplorerDriver(InternetExplorerDriverService service, InternetExplorerOptions options)
Creates a new InternetExplorerDriver instance with the specified options.InternetExplorerDriver(InternetExplorerOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assertOnWindows()
static org.openqa.selenium.remote.RemoteWebDriverBuilder
builder()
void
setFileDetector(org.openqa.selenium.remote.FileDetector detector)
-
Methods inherited from class org.openqa.selenium.remote.RemoteWebDriver
addVirtualAuthenticator, close, execute, execute, execute, executeAsyncScript, executeScript, findElement, findElement, findElements, findElements, findElements, get, getCapabilities, getCommandExecutor, getCurrentUrl, getElementConverter, getErrorHandler, getExecuteMethod, getFileDetector, getPageSource, getScreenshotAs, getSessionId, getTitle, getWindowHandle, getWindowHandles, log, manage, navigate, perform, print, quit, removeVirtualAuthenticator, resetInputState, setCommandExecutor, setElementConverter, setErrorHandler, setFoundBy, setLogLevel, setSessionId, startSession, switchTo, toString
-
-
-
-
Field Detail
-
IGNORE_ZOOM_SETTING
public static final java.lang.String IGNORE_ZOOM_SETTING
Capability that defines whether to ignore the browser zoom level or not.- See Also:
- Constant Field Values
-
NATIVE_EVENTS
@Deprecated public static final java.lang.String NATIVE_EVENTS
Deprecated.Non W3C compliantCapability that defines to use whether to use native or javascript events during operations.- See Also:
- Constant Field Values
-
INITIAL_BROWSER_URL
public static final java.lang.String INITIAL_BROWSER_URL
Capability that defines the initial URL to be used when IE is launched.- See Also:
- Constant Field Values
-
ELEMENT_SCROLL_BEHAVIOR
public static final java.lang.String ELEMENT_SCROLL_BEHAVIOR
Capability that defines how elements are scrolled into view in the InternetExplorerDriver.- See Also:
- Constant Field Values
-
UNEXPECTED_ALERT_BEHAVIOR
public static final java.lang.String UNEXPECTED_ALERT_BEHAVIOR
Capability that defines which behaviour will be used if an unexpected Alert is found.- See Also:
- Constant Field Values
-
ENABLE_ELEMENT_CACHE_CLEANUP
public static final java.lang.String ENABLE_ELEMENT_CACHE_CLEANUP
Capability that defines to use or not cleanup of element cache on document loading.- See Also:
- Constant Field Values
-
BROWSER_ATTACH_TIMEOUT
public static final java.lang.String BROWSER_ATTACH_TIMEOUT
Capability that defines timeout in milliseconds for attaching to new browser window.- See Also:
- Constant Field Values
-
INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS
public static final java.lang.String INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS
Capability that defines to ignore browser protected mode settings during starting by IEDriverServer. Setting this capability will make your tests unstable and hard to debug.- See Also:
- Constant Field Values
-
ENABLE_PERSISTENT_HOVERING
public static final java.lang.String ENABLE_PERSISTENT_HOVERING
Capability that defines to use persistent hovering or not.- See Also:
- Constant Field Values
-
REQUIRE_WINDOW_FOCUS
public static final java.lang.String REQUIRE_WINDOW_FOCUS
Capability that defines to focus to browser window or not before operation.- See Also:
- Constant Field Values
-
FORCE_CREATE_PROCESS
public static final java.lang.String FORCE_CREATE_PROCESS
Capability that defines launch API of IE used by IEDriverServer.- See Also:
- Constant Field Values
-
IE_ENSURE_CLEAN_SESSION
public static final java.lang.String IE_ENSURE_CLEAN_SESSION
Capability that defines to clean or not browser cache before launching IE by IEDriverServer.- See Also:
- Constant Field Values
-
IE_USE_PER_PROCESS_PROXY
public static final java.lang.String IE_USE_PER_PROCESS_PROXY
Capability that defines setting the proxy information for a single IE process without affecting the proxy settings of other instances of IE.- See Also:
- Constant Field Values
-
IE_SWITCHES
public static final java.lang.String IE_SWITCHES
Capability that defines used IE CLI switches whenFORCE_CREATE_PROCESS
is enabled.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InternetExplorerDriver
public InternetExplorerDriver()
-
InternetExplorerDriver
public InternetExplorerDriver(InternetExplorerOptions options)
-
InternetExplorerDriver
public InternetExplorerDriver(InternetExplorerDriverService service)
-
InternetExplorerDriver
public InternetExplorerDriver(InternetExplorerDriverService service, InternetExplorerOptions options)
Creates a new InternetExplorerDriver instance with the specified options. Theservice
will be started along with the driver, and shutdown upon callingRemoteWebDriver.quit()
.- Parameters:
service
- The service to use.options
- The options required from InternetExplorerDriver.
-
-
Method Detail
-
builder
@Beta public static org.openqa.selenium.remote.RemoteWebDriverBuilder builder()
-
setFileDetector
public void setFileDetector(org.openqa.selenium.remote.FileDetector detector)
- Overrides:
setFileDetector
in classorg.openqa.selenium.remote.RemoteWebDriver
-
assertOnWindows
protected void assertOnWindows()
-
-