selenium遇到的报错

1.stale element reference: element is not attached to the page document

原因:这个报错是由于获取的元素还没加载到页面上导致的

解决方法:等待一秒  time.sleep(1)给加载页面留点时间

posted @ 2022-01-29 22:51  今天也是开心的一天呀  阅读(100)  评论(0)    收藏  举报