findElementByXpath method

WebElement findElementByXpath(
  1. String by
)

Search for an element by xpath within the entire current page. Throws NoSuchElementException if a matching element is not found.

Implementation

WebElement findElementByXpath(String by) => findElement(By.xpath(by));