【发布时间】:2018-02-09 17:28:39
【问题描述】:
/**
* @param int $timeout : timeout period
* @throws ModuleException
*/
public function waitAjaxLoad($timeout = 10)
{
$this->webDriverModule->waitForJS('return !!window.jQuery && window.jQuery.active == 0;', $timeout);
$this->webDriverModule->wait(1);
$this->dontSeeJsError();
}
/**
* @param int $timeout : timeout period
* @throws ModuleException
*/
public function waitPageLoad($timeout = 10)
{
$this->webDriverModule->waitForJs('return document.readyState == "complete"', $timeout);
$this->waitAjaxLoad($timeout);
$this->dontSeeJsError();
}
这两个功能对我不起作用。是否有任何解决方法 等到重定向页面加载完毕?
【问题讨论】:
标签: php selenium-webdriver codeception webautomation