python+selenium报错:stale element reference: element is not attached to the page document
一:实现目的
选择input级联下拉框内容

二:报错原因
点击速度多快,导致查找元素没反应过来
三:解决方式
加个强制等待即可

本文探讨了Python中使用Selenium遇到的staleelementreference错误,重点在于快速点击导致元素未加载完毕的问题,通过添加适当延迟解决,并提供了解决方案。
python+selenium报错:stale element reference: element is not attached to the page document
一:实现目的
选择input级联下拉框内容

二:报错原因
点击速度多快,导致查找元素没反应过来
三:解决方式
加个强制等待即可

691
1455
9513
563

被折叠的 条评论
为什么被折叠?