Usage of findElement():
This is used to find the WebElement like Button, checkbox,radio button etc. on the page.The different locator (id,name,xpath etc.) are used within it to find the elements.
Syntax:
driver.findElement(By.xpath(“XPATH expression”));
driver.findElement(By.id(“Id of element”));
driver.findElement(By.name(“name of element”));
driver.findElement(By.id(“Id of element”));
driver.findElement(By.name(“name of element”));