element is not attached to the page document报错解决办法 1、场景:将一条子单记录合并到母单记录,子单记录消失后,再次定位母单记录的操作按钮,报错 代码如下: 2、代码运行到点击母单的代码时,报element is not attached to the page document 3、然后在该报错代码上面加了句time.sleep(),就不再报错