후 실패 우리는 AJAX 호출이 같은 사용을 완료 여부를 테스트하는 ISelenium.WaitForCondition
방법을 사용하십시오셀레늄 WaitForCondition 30 분 대신 20 초 우리의 기능 테스트에서
_selenium.WaitForCondition("!selenium.isElementPresent(\"" + locator + "\")", "20000");
때로는이 코드가 SeleniumException 실패를
Selenium.SeleniumException: ERROR: Command timed out
하지만 그 대신 20000 MS는 실패 30 분 정도 소요되며 그 후 모든 후속 셀레늄 호출이 실패 뭔가 같은 :
SeleniumException : ERROR Server Exception: unexpected command
json={command:"waitForCondition",target:"!selenium.isElementPresent(\"//div[contains(@id, \'atlProgress\') and contains(@style, \'display: block\')]\")",value:"20000"}
in place before new command waitForCondition could be added
우리는 .NET Selenium 포트를 사용합니다 : ThoughtWorks.Selenium.Core, Version = 2.7.0.0 및 WebDriver가 아닙니다.
이러한 오류를 방지하려면 어떻게해야합니까?