python,使用selenium的隐式等待driver.implicitly_wait(10) ,总是报selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: element is not attached to the page document错误,我换回time的强制等待就可以了,求大佬解答
selenium版本是,3.141.0
Webdriver Manager 版本是:3.8.5
2条回答 默认 最新
- 抄代码抄错的小牛马 2023-03-23 15:32关注
这个问题是你爬取的目标网页数据还没加载完,你的爬虫就开始爬取了,自然就返回报错
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报