Posted On: Mar 03, 2020
The SearchContext is a topmost interface present in the Selenium WebDriver hierarchy. It has two methods that will be the abstract as SearchContext is an interface.
The two methods are the findElement() and findElements().
The findElement() is used to find the first WebElement that matches the current context.
The findElements() method is used to find all elements within the current context. It returns all the elements that match or returns empty if nothing matches.
Never Miss an Articles from us.