我正在酱实验室上用量角器测试一个非角度页面。由于注销页面,我的测试经常失败。注销页面上有广告,但是我尝试设置超时多长时间,它达到了它并且规范失败了。
当我确定我没有达到超时时,我在测试期间遇到了同样的失败 a) 和 b)。有任何想法吗?
我的超时:
allScriptsTimeout: 100000,
defaultTimeoutInterval: 110000,
getPageTimeout: 120000,
browser.manage().timeouts().implicitlyWait(10000);
错误信息:
a) ✗ logout
- Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
b)
✗ logout
- Failed: Wait timed out after 60096ms
代码:
beforeEach(() => {
browser.manage().timeouts().implicitlyWait(10000);
beforeEach(function(done) { done(); }, 10000);
});
ListPage.logout.click();
browser.wait(EC.stalenessOf(ListPage.logout), 120000);