会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
十一的杂文录
博客园
首页
新随笔
联系
管理
订阅
2020年10月23日
selenium报错:Message: stale element reference: element is not attached to the page document
摘要: 在使用selenium时,报了一个错误 报错的原因: 所引用的元素已过时,不再依附于当前页面。通常情况下,这是因为页面进行了刷新或跳转 解决方法: 重新定位元素 代码示例: # 旧代码(报错) lists = self.root.find_elements_by_xpath('/html/body/
阅读全文
posted @ 2020-10-23 11:14 十一的杂文录
阅读(1701)
评论(0)
推荐(0)
编辑
公告