Locating Elements Using By
from selenium.webdriver.common.by import By
element = driver.find_element(By.ID, "element-id")
element = driver.find_element(By.CLASS_NAME, "element-class")
element = driver.find_element(By.NAME, "element-name")
element = driver.find_element(By.XPATH, "//tagname[@attribute='value']")
element = driver.find_element(By.CSS_SELECTOR, ".class-name > tagname")