get element by xpath selenium code example
Example 1: get element by xpath
document.evaluate('XPATH HERE', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
Example 2: selenium ways of finding
elementcss= driver.findElement(By.cssSelector('div.nav-search-input'))