from selenium import webdriver
from selenium.webdriver.common.by import By 导入By方法
driver = webdriver.Chorme()
driver.get("http://www.baidu.com")
如下。。。。
driver.find_element(By.ID, " ")
driver.find_element(By.NAME, " ")
driver.find_element(By.CLASS_NAME, " ")
driver.find_element(By.TAG_NAME, " ")
driver.find_element(By.LIKE_NAME, " ")
driver.find_element(By.PARTIAL_LIKE_NAME, " ")
driver.find_element(By.XPATH, " ")
driver.find_element(By.CSS_SELECTOR, " ")