selenium.common.exceptions.StaleElementReferenceException:
python做自动化的时候报错点击click()之后,不能获取页面上的元素,报错selenium.common.exceptions.StaleElementReferenceException代码如下(示例):# 找到 ’关于平板电脑‘while True: try: driver.find_element_by_xpath("//*[contains(@text,'语言和输入法')]").click() break except Exception
原创
2020-10-28 11:17:04 ·
775 阅读 ·
0 评论