findElementByXpath method
- 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));