Uses of Interface
org.openqa.selenium.WebDriver
Packages that use WebDriver
Package
Description
-
Uses of WebDriver in org.openqa.selenium
Methods in org.openqa.selenium that return WebDriverModifier 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.Methods in org.openqa.selenium that return types with arguments of type WebDriverModifier and TypeMethodDescriptionWebDriverInfo.createDriver
(Capabilities capabilities) Creates a new instance of theWebDriver
implementation. -
Uses of WebDriver in org.openqa.selenium.bidi.browsingcontext
Constructors in org.openqa.selenium.bidi.browsingcontext with parameters of type WebDriverModifierConstructorDescriptionBrowsingContext
(WebDriver driver, String id) BrowsingContext
(WebDriver driver, CreateContextParameters parameters) BrowsingContext
(WebDriver driver, WindowType type) BrowsingContext
(WebDriver driver, WindowType type, String referenceContextId) Deprecated. -
Uses of WebDriver in org.openqa.selenium.bidi.module
Constructors in org.openqa.selenium.bidi.module with parameters of type WebDriverModifierConstructorDescriptionBrowsingContextInspector
(String browsingContextId, WebDriver driver) BrowsingContextInspector
(Set<String> browsingContextIds, WebDriver driver) BrowsingContextInspector
(WebDriver driver) LogInspector
(String browsingContextId, WebDriver driver) LogInspector
(Set<String> browsingContextIds, WebDriver driver) LogInspector
(WebDriver driver) Permission
(WebDriver driver) -
Uses of WebDriver in org.openqa.selenium.chrome
Classes in org.openqa.selenium.chrome that implement WebDriverModifier and TypeClassDescriptionclass
AWebDriver
implementation that controls a Chrome browser running on the local machine.Methods in org.openqa.selenium.chrome that return types with arguments of type WebDriver -
Uses of WebDriver in org.openqa.selenium.chromium
Classes in org.openqa.selenium.chromium that implement WebDriverModifier and TypeClassDescriptionclass
AWebDriver
implementation that controls a Chromium browser running on the local machine. -
Uses of WebDriver in org.openqa.selenium.devtools
Methods in org.openqa.selenium.devtools with parameters of type WebDriverConstructors in org.openqa.selenium.devtools with parameters of type WebDriverModifierConstructorDescriptionNetworkInterceptor
(WebDriver driver, Filter filter) NetworkInterceptor
(WebDriver driver, HttpHandler handler) NetworkInterceptor
(WebDriver driver, Routable routable) -
Uses of WebDriver in org.openqa.selenium.edge
Classes in org.openqa.selenium.edge that implement WebDriverModifier and TypeClassDescriptionclass
AWebDriver
implementation that controls an Edge browser running on the local machine.Methods in org.openqa.selenium.edge that return types with arguments of type WebDriver -
Uses of WebDriver in org.openqa.selenium.firefox
Classes in org.openqa.selenium.firefox that implement WebDriverModifier and TypeClassDescriptionclass
An implementation of the {#link WebDriver} interface that drives Firefox.Methods in org.openqa.selenium.firefox that return types with arguments of type WebDriver -
Uses of WebDriver in org.openqa.selenium.ie
Classes in org.openqa.selenium.ie that implement WebDriverMethods in org.openqa.selenium.ie that return types with arguments of type WebDriverModifier and TypeMethodDescriptionInternetExplorerDriverInfo.createDriver
(Capabilities capabilities) -
Uses of WebDriver in org.openqa.selenium.interactions
Constructors in org.openqa.selenium.interactions with parameters of type WebDriver -
Uses of WebDriver in org.openqa.selenium.logging
Methods in org.openqa.selenium.logging with parameters of type WebDriver -
Uses of WebDriver in org.openqa.selenium.remote
Classes in org.openqa.selenium.remote that implement WebDriverMethods in org.openqa.selenium.remote that return WebDriverModifier 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()
Methods in org.openqa.selenium.remote with parameters of type WebDriverModifier and TypeMethodDescriptionEnhance the interfaces implemented by this instance of WebDriver if that instance is aRemoteWebDriver
. -
Uses of WebDriver in org.openqa.selenium.safari
Classes in org.openqa.selenium.safari that implement WebDriverModifier and TypeClassDescriptionclass
A WebDriver implementation that controls Safari using a browser extension (consequently, only Safari 5.1+ is supported).Methods in org.openqa.selenium.safari that return types with arguments of type WebDriverModifier and TypeMethodDescriptionSafariDriverInfo.createDriver
(Capabilities capabilities) SafariTechPreviewDriverInfo.createDriver
(Capabilities capabilities) -
Uses of WebDriver in org.openqa.selenium.support
Methods in org.openqa.selenium.support that return WebDriverMethods in org.openqa.selenium.support with parameters of type WebDriver -
Uses of WebDriver in org.openqa.selenium.support.decorators
Classes in org.openqa.selenium.support.decorators with type parameters of type WebDriverModifier 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
Classes in org.openqa.selenium.support.events with type parameters of type WebDriverModifier 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
.Methods in org.openqa.selenium.support.events with parameters of type WebDriverModifier 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
Methods in org.openqa.selenium.support.ui that return types with arguments of type WebDriverModifier 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.Constructors in org.openqa.selenium.support.ui with parameters of type WebDriverModifierConstructorDescriptionWebDriverWait
(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.