Uses of Interface
org.openqa.selenium.WebDriver
Package
Description
-
Uses of WebDriver in org.openqa.selenium
Modifier and TypeMethodDescriptionDeprecated.Switch the focus of future commands for this driver to the context with the given name.WebDriver.TargetLocator.defaultContent()
Selects either the first frame on the page, or the main document when a page contains iframes.WebDriver.TargetLocator.frame
(int index) Select a frame by its (zero-based) index.Select a frame by its name or ID.WebDriver.TargetLocator.frame
(WebElement frameElement) Select a frame using its previously locatedWebElement
.protected WebDriver
By.getWebDriver
(SearchContext context) WrapsDriver.getWrappedDriver()
WebDriver.TargetLocator.newWindow
(WindowType typeHint) Creates a new browser window and switches the focus for future commands of this driver to the new window.WebDriver.TargetLocator.parentFrame()
Change focus to the parent context.Switch the focus of future commands for this driver to the window with the given name/handle.Modifier and TypeMethodDescriptionWebDriverInfo.createDriver
(Capabilities capabilities) Creates a new instance of theWebDriver
implementation. -
Uses of WebDriver in org.openqa.selenium.chrome
Modifier and TypeClassDescriptionclass
AWebDriver
implementation that controls a Chrome browser running on the local machine. -
Uses of WebDriver in org.openqa.selenium.chromium
Modifier and TypeClassDescriptionclass
AWebDriver
implementation that controls a Chromium browser running on the local machine. -
Uses of WebDriver in org.openqa.selenium.devtools
ModifierConstructorDescriptionNetworkInterceptor
(WebDriver driver, Filter filter) NetworkInterceptor
(WebDriver driver, HttpHandler handler) NetworkInterceptor
(WebDriver driver, Routable routable) -
Uses of WebDriver in org.openqa.selenium.edge
Modifier and TypeClassDescriptionclass
AWebDriver
implementation that controls an Edge browser running on the local machine. -
Uses of WebDriver in org.openqa.selenium.firefox
Modifier and TypeClassDescriptionclass
An implementation of the {#link WebDriver} interface that drives Firefox. -
Uses of WebDriver in org.openqa.selenium.grid.session.remote
-
Uses of WebDriver in org.openqa.selenium.ie
Modifier and TypeMethodDescriptionInternetExplorerDriverInfo.createDriver
(Capabilities capabilities) -
Uses of WebDriver in org.openqa.selenium.interactions
-
Uses of WebDriver in org.openqa.selenium.logging
-
Uses of WebDriver in org.openqa.selenium.remote
Modifier and TypeMethodDescriptionEnhance the interfaces implemented by this instance of WebDriver if that instance is aRemoteWebDriver
.RemoteWebDriverBuilder.build()
Actually create a new WebDriver session.RemoteWebDriver.RemoteTargetLocator.defaultContent()
RemoteWebDriver.RemoteTargetLocator.frame
(int frameIndex) RemoteWebDriver.RemoteTargetLocator.frame
(WebElement frameElement) RemoteExecuteMethod.getWrappedDriver()
RemoteWebElement.getWrappedDriver()
RemoteWebDriver.RemoteTargetLocator.newWindow
(WindowType typeHint) RemoteWebDriver.RemoteTargetLocator.parentFrame()
Modifier and TypeMethodDescriptionEnhance the interfaces implemented by this instance of WebDriver if that instance is aRemoteWebDriver
. -
Uses of WebDriver in org.openqa.selenium.safari
Modifier and TypeClassDescriptionclass
A WebDriver implementation that controls Safari using a browser extension (consequently, only Safari 5.1+ is supported).Modifier and TypeMethodDescriptionSafariDriverInfo.createDriver
(Capabilities capabilities) SafariTechPreviewDriverInfo.createDriver
(Capabilities capabilities) -
Uses of WebDriver in org.openqa.selenium.support
-
Uses of WebDriver in org.openqa.selenium.support.decorators
Modifier and TypeClassDescriptionclass
WebDriverDecorator<T extends WebDriver>
This class helps to create decorators for instances ofWebDriver
and derived objects, such asWebElement
s andAlert
, that can extend or modify their "regular" behavior. -
Uses of WebDriver in org.openqa.selenium.support.events
Modifier and TypeClassDescriptionclass
EventFiringDecorator<T extends WebDriver>
This decorator creates a wrapper around an arbitraryWebDriver
instance that notifies registered listeners about events happening in this WebDriver and derived objects, such asWebElement
s andAlert
.Modifier and TypeMethodDescriptiondefault void
WebDriverListener.afterActiveElement
(WebDriver.TargetLocator targetLocator, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.activeElement()
is called.default void
WebDriverListener.afterAnyWebDriverCall
(WebDriver driver, Method method, Object[] args, Object result) This method will be called after any method of aWebDriver
instance is called.default void
WebDriverListener.afterClose
(WebDriver driver) This method will be called afterclose()
is called.default void
WebDriverListener.afterDefaultContent
(WebDriver.TargetLocator targetLocator, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.defaultContent()
is called.default void
WebDriverListener.afterExecuteAsyncScript
(WebDriver driver, String script, Object[] args, Object result) This method will be called afterJavascriptExecutor.executeAsyncScript(String, Object...)
is called.default void
WebDriverListener.afterExecuteScript
(WebDriver driver, String script, Object[] args, Object result) This method will be called afterJavascriptExecutor.executeScript(ScriptKey, Object...)
is called.default void
WebDriverListener.afterFindElement
(WebDriver driver, By locator, WebElement result) This method will be called afterfindElement(By)
is called.default void
WebDriverListener.afterFindElements
(WebDriver driver, By locator, List<WebElement> result) This method will be called afterfindElements(By)
is called.default void
WebDriverListener.afterFrame
(WebDriver.TargetLocator targetLocator, int index, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.frame(int)
()} is called.default void
WebDriverListener.afterFrame
(WebDriver.TargetLocator targetLocator, String nameOrId, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.frame(String)
()} is called.default void
WebDriverListener.afterFrame
(WebDriver.TargetLocator targetLocator, WebElement frameElement, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.frame(WebElement)
()} is called.default void
This method will be called afterget(String)
is called.default void
WebDriverListener.afterGetCurrentUrl
(WebDriver driver, String result) This method will be called aftergetCurrentUrl()
is called.default void
WebDriverListener.afterGetPageSource
(WebDriver driver, String result) This method will be called aftergetPageSource()
is called.default void
WebDriverListener.afterGetTitle
(WebDriver driver, String result) This method will be called aftergetTitle()
is called.default void
WebDriverListener.afterGetWindowHandle
(WebDriver driver, String result) This method will be called aftergetWindowHandle()
is called.default void
WebDriverListener.afterGetWindowHandles
(WebDriver driver, Set<String> result) This method will be called aftergetWindowHandles()
is called.default void
WebDriverListener.afterNewWindow
(WebDriver.TargetLocator targetLocator, WindowType typeHint, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.newWindow(WindowType)
is called.default void
WebDriverListener.afterParentFrame
(WebDriver.TargetLocator targetLocator, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.parentFrame()
is called.default void
WebDriverListener.afterPerform
(WebDriver driver, Collection<Sequence> actions) This method will be called afterActions.perform()
} is called.default void
This method will be called afterquit()
is called.default void
WebDriverListener.afterResetInputState
(WebDriver driver) This method will be called afterRemoteWebDriver.resetInputState()
is called.default void
WebDriverListener.afterWindow
(WebDriver.TargetLocator targetLocator, String nameOrHandle, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.window(String)
.default void
WebDriverListener.beforeAnyWebDriverCall
(WebDriver driver, Method method, Object[] args) This method will be called before any method of aWebDriver
instance is called.default void
WebDriverListener.beforeClose
(WebDriver driver) This method will be called beforeclose()
is called.default void
WebDriverListener.beforeExecuteAsyncScript
(WebDriver driver, String script, Object[] args) This method will be called beforeJavascriptExecutor.executeAsyncScript(String, Object...)
is called.default void
WebDriverListener.beforeExecuteScript
(WebDriver driver, String script, Object[] args) This method will be called beforeJavascriptExecutor.executeScript(ScriptKey, Object...)
is called.default void
WebDriverListener.beforeFindElement
(WebDriver driver, By locator) This method will be called beforefindElement(By)
is called.default void
WebDriverListener.beforeFindElements
(WebDriver driver, By locator) This method will be called beforefindElements(By)
is called.default void
This method will be called beforeget(String)
is called.default void
WebDriverListener.beforeGetCurrentUrl
(WebDriver driver) This method will be called beforegetCurrentUrl()
is called.default void
WebDriverListener.beforeGetPageSource
(WebDriver driver) This method will be called beforegetPageSource()
is called.default void
WebDriverListener.beforeGetTitle
(WebDriver driver) This method will be called beforegetTitle()
is called.default void
WebDriverListener.beforeGetWindowHandle
(WebDriver driver) This method will be called beforegetWindowHandle()
is called.default void
WebDriverListener.beforeGetWindowHandles
(WebDriver driver) This method will be called beforegetWindowHandles()
is called.default void
WebDriverListener.beforePerform
(WebDriver driver, Collection<Sequence> actions) This method will be called beforeActions.perform()
} is called.default void
WebDriverListener.beforeQuit
(WebDriver driver) This method will be called beforequit()
is called.default void
WebDriverListener.beforeResetInputState
(WebDriver driver) This method will be called beforeRemoteWebDriver.resetInputState()
is called. -
Uses of WebDriver in org.openqa.selenium.support.ui
Modifier and TypeMethodDescriptionstatic ExpectedCondition<WebDriver>
ExpectedConditions.frameToBeAvailableAndSwitchToIt
(int frameLocator) An expectation for checking whether the given frame is available to switch to.static ExpectedCondition<WebDriver>
ExpectedConditions.frameToBeAvailableAndSwitchToIt
(String frameLocator) An expectation for checking whether the given frame is available to switch to.static ExpectedCondition<WebDriver>
ExpectedConditions.frameToBeAvailableAndSwitchToIt
(By locator) An expectation for checking whether the given frame is available to switch to.static ExpectedCondition<WebDriver>
ExpectedConditions.frameToBeAvailableAndSwitchToIt
(WebElement frameLocator) An expectation for checking whether the given frame is available to switch to.ModifierConstructorDescriptionWebDriverWait
(WebDriver driver, Duration timeout) Wait will ignore instances of NotFoundException that are encountered (thrown) by default in the 'until' condition, and immediately propagate all others.WebDriverWait
(WebDriver driver, Duration timeout, Duration sleep) Wait will ignore instances of NotFoundException that are encountered (thrown) by default in the 'until' condition, and immediately propagate all others.