📜  硒如何处理找不到元素python代码示例

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

代码示例1
try:
       elem = driver.find_element_by_xpath(".//*[@id='SORM_TB_ACTION0']")
       elem.click()
except nosuchelementexception:
       pass