selenium find element by id code example
Example 1: driver.find_element_by_xpath
driver.find_element_by_xpath('//*[@id="emailField"]')
Example 2: find elements in selenium
h1 = driver.find_element_by_name('h1')
h1 = driver.find_element_by_class_name('someclass')
h1 = driver.find_element_by_xpath('//h1')
h1 = driver.find_element_by_id('greatID')
Example 3: selenium select element by id
driver.findElement(By.id("ui-datepicker-div"));
Example 4: selenium ways of finding
elementcss= driver.findElement(By.cssSelector('div.nav-search-input'))