Selenium Locating
Feb 26th, 2020 - Now
根据xxx查找元素
find_element_by_xpath()
find_element_by_css_selector()
<div id='inner'>呵呵呵</div> : <type> 是 <div>,其 <id> 为 'inner'
<a href='http://www.baidu.com'>百度一下</a> : <type> 是 <a>,其中有个 [href] 的属性值是 'http://www.baidu.com'
<li class='two three four'>Two</li> : <type> 是 <li>,其属于 'two' 'three' 'four' 三种 <class>find_element_by_link_text()
find_element_by_partial_link_text()
find_element_by_tag_name()
find_element_by_class_name()
find_element_by_name()
find_elements_by_xxx()
查找元素是否存在
无法找到元素
特殊样式的查找
iframe 框架
嵌套 iframe
退出 iframe
table 类
Reference
Last updated

