60秒後にクリック操作がタイムアウトする原因は何ですか?要素がページに明確に表示され、クリック可能(私はクリック前にExpectedConditions.ElementToBeClickable
のチェックをしています)でも、例外がスローされます。 OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://grid:4444/wd/hub/session/9e9693f0-0288-47a1-97f9-8f61c300bc41/element/29/click timed out after 60 seconds. ----> System.Net.WebException : The operation has timed out
60秒後にクリック操作がタイムアウトする原因は何ですか?
WebDriverWait wait = new WebDriverWait(this.driverController.driver, TimeSpan.FromSeconds(30.00));
IWebElement clickThis;
wait.Until(ExpectedConditions.ElementToBeClickable(By.Id("elementId")));
clickThis = this.driverController.driver.FindElement(By.Id("elementId"));
clickThis.Click();
例外がclickThis.Click()
おかげで発生し、
ちょっとマット、マークアップを表示できますか? – Rostech
@MattあなたがテストしているページのHTMLを提供している場合は、あなたの問題についてさらにアドバイスを提供することができます。 –
問題が解決しない場合、または正解をマークしてください。 –