我有一個難以重現的點擊錯誤。點擊次數爲1-2/10000,以OpenQA.Selenium.WebDriverTimeoutException
結束。 它看起來像元素沒有被點擊,驅動程序等待一些反應。Selenium WebDriver在RemoteWebElement.Click上拋出WebDriverTimeoutException()
Message: timeout: cannot determine loading status
from timeout: Timed out receiving message from renderer: -0.028
(Session info: chrome=52.0.2743.116)
(Driver info: chromedriver=2.22.397933 (1cab651507b88dec79b2b2a22d1943c01833cc1b),platform=Windows NT 6.3.9600 x86_64)
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.RemoteWebDriver.InternalExecute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebElement.Execute(String commandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebElement.Click()
有時超時異常消息看起來合法(300秒),但在大多數情況下它具有負值,如-0.028。
我用:
Chrome 52.0.2743.116
Selenium 2.53.1
ChromeDriver 2.23 (also produces with 2.22)
更新:
我開始還收到此錯誤上RemoteNavigator.GoToUrl
Type: OpenQA.Selenium.WebDriverTimeoutException
Message: timeout: cannot determine loading status
from timeout: Timed out receiving message from renderer: -0.032
(Session info: chrome=52.0.2743.116)
(Driver info: chromedriver=2.23.409699 (49b0fa931cda1caad0ae15b7d1b68004acd05129),platform=Windows NT 6.3.9600 x86_64)
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.RemoteWebDriver.set_Url(String value)
at OpenQA.Selenium.Remote.RemoteNavigator.GoToUrl(String url)
如果您粘貼代碼,那將會很棒。 – amitbobade
@amitbobade它發生在我稱之爲'IWebElement.Click()'的很多地方,但非常罕見且不可預知。 –
很酷。 ChromeDriver版本是什麼? – amitbobade