Methods Present in Interfaces of Selenium WebDriver

SearchContext interface :

  1. findElement()
  2. findElements()

WebDriver interface :

  1. close()
  2. get()
  3. getTitle()
  4. getPageSource()
  5. getCurrentUrl()
  6. getWindowHandle()
  7. getWindowHandles()
  8. manage()
  9. navigate()
  10. quit()
  11. switchTo()

TakesScreenshot interface :

  1. getScreenshotAs(args)

JavascriptExecutor interface :

  1. executeScript()
  2. executeAsyncScript() – we dont use this for automation

WebElement interface :

  1. clear()
  2. click()
  3. getAttribute()
  4. getCssValue()
  5. getLocation()
  6. getRect()
  7. getSize()
  8. getTagName()
  9. getText()
  10. isDisplayed()
  11. isEnabled()
  12. isSelected()
  13. sendKeys()
  14. submit()

You may also like...