findElement abstract method

WebElement findElement(
  1. By by
)

Searches for an element within the context.

Throws NoSuchElementException if no matching element is found.

Implementation

WebElement findElement(By by);