lijingshou 发表于 2013-1-22 22:41:57

selenium.waitForCondition()的使用

1.selenium.waitForCondition(script, timeoutInMilliseconds);
script为javascript代码,后面为timeout的时间
selenium.waitForCondition("selenium.browserbot.getCurrentWindow().***********", timeoutInMilliseconds);

2.selenium.waitForCondition(seleniumCommand, timeout)
seleniumCommand可以是Selenium.isTextPresent("Id")或者Selenium.isElementPresent("identifier");
页: [1]
查看完整版本: selenium.waitForCondition()的使用