Selenium Grid与Chrome 113对MacOS抛出异常(无法确定加载状态)

f2uvfpb9  于 2023-05-11  发布在  Go
关注(0)|答案(1)|浏览(258)

我正在使用Selenium Grid(selenium-server-standalone.3.14.0)和chromedriver 113.0.5672.63,使用NUnit在MacOS(10.15 Catalina )上运行Selenium测试。
某些测试成功通过,但某些随机测试有时会失败,并在IWebElement上显示错误。单击():

unknown error: cannot determine loading status
from unknown error: cannot determine loading status
from no such window
  (Session info: chrome=113.0.5672.92).

Exception Stack Trace:    
   at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.Remote.RemoteWebElement.Execute(String commandToExecute, Dictionary`2 parameters)

有什么办法,怎么解决?
我认为,这可能与Chrome 113的一些变化有关-例如,TestComplete也有Chrome 113的问题:https://community.smartbear.com/t5/TestComplete-Questions/TestComplete-issues-with-Chrome-113/td-p/249733

s1ag04yj

s1ag04yj1#

值得一提的是,我在OSX上用selenium-webdriver驱动Chrome 113的Rails应用程序运行 cucumber 测试时遇到了完全相同的问题。这个错误也只在我们对同一个会话运行多个测试时显示。
至少在我的例子中,如果我捕获并忽略错误,测试将正常运行。不是一个很好的解决方案,但它可以作为一个黑客解决方案,直到更好的东西出现。

相关问题