Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我的测试失败并且 RemoteDriver 上的会话在此之前结束或元素未建立并且 selenoid(RemoteDriver) 上的会话结束,我的 tearDown 也会失败。如果当前会话没有失败,我如何检查它,我可以使用 driver.quit() 以及如何在会话结束之前在拆卸之前避免此错误。
此错误通常意味着您与浏览器交互的时间不超过使用-timeout参数(默认为 1 分钟)或sessionTimeout功能指定的时间。要么检查你为什么在后续的 Selenium 请求之间有这么长时间的停顿,要么将超时值增加到 2 分钟。
-timeout
sessionTimeout