id
name 可能重复
class_ name 可能重复
tag_ name 可能重复
link_text 文字定位精确
partial_link_text 文字定位模糊
xpath
css
# xpath : ("//标签名[ @属性= "属性值"]")
driver.find_element_by_xpath("//*[@id=kw]")
原文:https://www.cnblogs.com/yi-xixi/p/10972961.html