So, SearchContext and WebDriver has parent child relationship between them.
SearchContext has only two abstract methods:
- WebElement findElement(By by)
- java.util.List findElements(By by) : Return list of WebElements
On the other hand WebDriver interface also have many abstract methods.
All abstract methods of SerachContext and Webdriver interface are implemented in the RemoteWebDriver class.
These links will help you to understand:https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/SearchContext.htmlhttps://www.javadoc.io/doc/org.seleniumhq.selenium/selenium-api/2.50.1/org/openqa/selenium/WebDriver.html