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 WebDriverBy.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 theWebDriverimplementation. -
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 TypeClassDescriptionclassAWebDriverimplementation 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 TypeClassDescriptionclassAWebDriverimplementation 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 TypeClassDescriptionclassAWebDriverimplementation 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 TypeClassDescriptionclassAn 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 TypeClassDescriptionclassA 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 TypeClassDescriptionclassWebDriverDecorator<T extends WebDriver>This class helps to create decorators for instances ofWebDriverand derived objects, such asWebElements 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 TypeClassDescriptionclassEventFiringDecorator<T extends WebDriver>This decorator creates a wrapper around an arbitraryWebDriverinstance that notifies registered listeners about events happening in this WebDriver and derived objects, such asWebElements andAlert.Methods in org.openqa.selenium.support.events with parameters of type WebDriverModifier and TypeMethodDescriptiondefault voidWebDriverListener.afterActiveElement(WebDriver.TargetLocator targetLocator, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.activeElement()is called.default voidWebDriverListener.afterAnyWebDriverCall(WebDriver driver, Method method, Object[] args, Object result) This method will be called after any method of aWebDriverinstance is called.default voidWebDriverListener.afterClose(WebDriver driver) This method will be called afterclose()is called.default voidWebDriverListener.afterDefaultContent(WebDriver.TargetLocator targetLocator, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.defaultContent()is called.default voidWebDriverListener.afterExecuteAsyncScript(WebDriver driver, String script, Object[] args, Object result) This method will be called afterJavascriptExecutor.executeAsyncScript(String, Object...)is called.default voidWebDriverListener.afterExecuteScript(WebDriver driver, String script, Object[] args, Object result) This method will be called afterJavascriptExecutor.executeScript(ScriptKey, Object...)is called.default voidWebDriverListener.afterFindElement(WebDriver driver, By locator, WebElement result) This method will be called afterfindElement(By)is called.default voidWebDriverListener.afterFindElements(WebDriver driver, By locator, List<WebElement> result) This method will be called afterfindElements(By)is called.default voidWebDriverListener.afterFrame(WebDriver.TargetLocator targetLocator, int index, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.frame(int)()} is called.default voidWebDriverListener.afterFrame(WebDriver.TargetLocator targetLocator, String nameOrId, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.frame(String)()} is called.default voidWebDriverListener.afterFrame(WebDriver.TargetLocator targetLocator, WebElement frameElement, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.frame(WebElement)()} is called.default voidThis method will be called afterget(String)is called.default voidWebDriverListener.afterGetCurrentUrl(WebDriver driver, String result) This method will be called aftergetCurrentUrl()is called.default voidWebDriverListener.afterGetPageSource(WebDriver driver, String result) This method will be called aftergetPageSource()is called.default voidWebDriverListener.afterGetTitle(WebDriver driver, String result) This method will be called aftergetTitle()is called.default voidWebDriverListener.afterGetWindowHandle(WebDriver driver, String result) This method will be called aftergetWindowHandle()is called.default voidWebDriverListener.afterGetWindowHandles(WebDriver driver, Set<String> result) This method will be called aftergetWindowHandles()is called.default voidWebDriverListener.afterNewWindow(WebDriver.TargetLocator targetLocator, WindowType typeHint, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.newWindow(WindowType)is called.default voidWebDriverListener.afterParentFrame(WebDriver.TargetLocator targetLocator, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.parentFrame()is called.default voidWebDriverListener.afterPerform(WebDriver driver, Collection<Sequence> actions) This method will be called afterActions.perform()} is called.default voidThis method will be called afterquit()is called.default voidWebDriverListener.afterResetInputState(WebDriver driver) This method will be called afterRemoteWebDriver.resetInputState()is called.default voidWebDriverListener.afterWindow(WebDriver.TargetLocator targetLocator, String nameOrHandle, WebDriver driver) This action will be performed each time afterWebDriver.TargetLocator.window(String).default voidWebDriverListener.beforeAnyWebDriverCall(WebDriver driver, Method method, Object[] args) This method will be called before any method of aWebDriverinstance is called.default voidWebDriverListener.beforeClose(WebDriver driver) This method will be called beforeclose()is called.default voidWebDriverListener.beforeExecuteAsyncScript(WebDriver driver, String script, Object[] args) This method will be called beforeJavascriptExecutor.executeAsyncScript(String, Object...)is called.default voidWebDriverListener.beforeExecuteScript(WebDriver driver, String script, Object[] args) This method will be called beforeJavascriptExecutor.executeScript(ScriptKey, Object...)is called.default voidWebDriverListener.beforeFindElement(WebDriver driver, By locator) This method will be called beforefindElement(By)is called.default voidWebDriverListener.beforeFindElements(WebDriver driver, By locator) This method will be called beforefindElements(By)is called.default voidThis method will be called beforeget(String)is called.default voidWebDriverListener.beforeGetCurrentUrl(WebDriver driver) This method will be called beforegetCurrentUrl()is called.default voidWebDriverListener.beforeGetPageSource(WebDriver driver) This method will be called beforegetPageSource()is called.default voidWebDriverListener.beforeGetTitle(WebDriver driver) This method will be called beforegetTitle()is called.default voidWebDriverListener.beforeGetWindowHandle(WebDriver driver) This method will be called beforegetWindowHandle()is called.default voidWebDriverListener.beforeGetWindowHandles(WebDriver driver) This method will be called beforegetWindowHandles()is called.default voidWebDriverListener.beforePerform(WebDriver driver, Collection<Sequence> actions) This method will be called beforeActions.perform()} is called.default voidWebDriverListener.beforeQuit(WebDriver driver) This method will be called beforequit()is called.default voidWebDriverListener.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.