我使用硒运行一些很简单的测试,有的测试我的缓慢构建机器上随机失败,给这个错误:selenium.waitForPageToLoad(“3000”)超时后3000毫秒
com.thoughtworks.selenium .SeleniumException:后3000ms
针对该代码超时:
seleniumStart();
selenium.open("*****");
selenium.waitForPageToLoad("3000");
selenium.type("j_username", LoginTest.DEFAULT_ADMIN_USERNAME);
selenium.type("j_password", LoginTest.DEFAULT_ADMIN_PASSWORD);
selenium.click("loginbutton");
selenium.waitForPageToLoad("3000");
selenium.click("nav_form:managepatients");
它使用弹簧的安全性,并作为JSF前端。有谁知道这是为什么发生?我一直坚持这2天。
在此先感谢。
谢谢@Zarkonnen,工作。 – Ikthiander 2011-02-04 12:12:10