0% found this document useful (0 votes)
11 views1 page

Webdriver Hierarchy

The document outlines the hierarchy and methods of the WebDriver interface, which includes various nested interfaces and classes such as RemoteWebDriver and specific browser drivers like SafariDriver and ChromeDriver. It emphasizes that classes implementing the WebDriver interface must implement all its abstract methods, including findElement and findElements. Additionally, it mentions interfaces like JavascriptExecutor and TakeScreenshot, detailing their respective methods for executing scripts and capturing screenshots.

Uploaded by

Shubham Kourav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

Webdriver Hierarchy

The document outlines the hierarchy and methods of the WebDriver interface, which includes various nested interfaces and classes such as RemoteWebDriver and specific browser drivers like SafariDriver and ChromeDriver. It emphasizes that classes implementing the WebDriver interface must implement all its abstract methods, including findElement and findElements. Additionally, it mentions interfaces like JavascriptExecutor and TakeScreenshot, detailing their respective methods for executing scripts and capturing screenshots.

Uploaded by

Shubham Kourav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

WEBDRI VER HI ERARCHY R A K ES H D OR ES W A MY

**Webdriver Methods
**Interface has only abstract methods
SearchContext(Interface)
**Classes implementing a interface should
implement all the methods of that particular interface findElement(By by):WebElement
findElements(By by):java.uti.List<WebElement>

**Method(Parameter):ReturnType**

Nested interfaces
in WebDriver
extends
WebDriver.ImeHandler
WebDriver.Navigation
WebDriver.Options WebDriver(Interface)
WebDriver.TargetLocator
WebDriver.Timeouts Refer to top right images for WebDriver methods
WebDriver.Window
**WebDriver Methods

JavascriptExecutor(Interface)
implements
TakeScreenshot(Interface) executeAsyncScript(java.lang.String script, java.lang.Object...
args):java.lang.Object
getScreenshotAs(OutputType<X> target):<X> X executeScript(java.lang.String script, java.lang.Object...
args):java.lang.Object
implements RemoteWebDriver(Class) implements

**FULLY IMPLEMENTED CLASS

extends extends extends extends extends

SafariDriver(Class) FirefoxDriver(Class) ChromeDriver(Class) InternetExplorerDriver(Class) OperaDriver(Class)

You might also like