macosgoogle-chromeselenium-webdriverselenium-chromedriverselenium-grid

Selenium Grid with Chrome 113 against MacOS throws exception (cannot determine loading status)


I am using Selenium Grid (selenium-server-standalone.3.14.0) with chromedriver 113.0.5672.63 to run Selenium tests against MacOS (10.15 Catalina) using NUnit.

Some tests passed successfully, but some random tests sometimes failed with error on IWebElement.Click():

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)

Any ideas, how to fix it?

I think, it may be related to some changes in Chrome 113 - for example, TestComplete also has issues with Chrome 113: https://community.smartbear.com/t5/TestComplete-Questions/TestComplete-issues-with-Chrome-113/td-p/249733


Solution

  • As workaround, I am using JavaSctipt click on element

    ((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].click();", element);