📜  按标题查找元素 selenium python 代码示例

📅  最后修改于: 2022-03-11 14:46:47.196000             🧑  作者: Mango

代码示例1
With a CSS selector for an element with a title starting with "4G Signal quality":

driver.find_element_by_css_selector("[title^='4G Signal quality']")
, or containing "4G Signal quality":

driver.find_element_by_css_selector("[title*='4G Signal quality']")