在stale element reference: element is not attached to the page document的第一次迭代之后,我得到了Selenium异常for loop我的代码是: self.driver.execute_script("return arguments[0].scrollIntoView
我有在页面上的一些输入,并需要强制,至少5个项目已经被填充。如果不是,则显示一条消息,提示您必须至少填写5个。到目前为止,我已经尝试了以下方法,但它只是一遍又一遍地显示错误。这样做的正确方式是什么?$('div.inputs input').each(function(i) { while (i < 5) {
if ($($input