by id selenium code example
Example 1: driver.find_element_by_xpath
driver.find_element_by_xpath('//*[@id="emailField"]')
Example 2: selenium ways of finding
elementcss= driver.findElement(By.cssSelector('div.nav-search-input'))
driver.find_element_by_xpath('//*[@id="emailField"]')
elementcss= driver.findElement(By.cssSelector('div.nav-search-input'))