【发布时间】:2014-03-11 23:44:22
【问题描述】:
在测试规范中,我需要单击网页上的按钮,然后等待新页面完全加载。
emailEl.sendKeys('jack');
passwordEl.sendKeys('123pwd');
btnLoginEl.click();
// ...Here need to wait for page complete... How?
ptor.waitForAngular();
expect(ptor.getCurrentUrl()).toEqual(url + 'abc#/efg');
【问题讨论】:
-
您能否在您等待的页面上更具体一些?您只是在等待页面更改或一些异步加载吗?
标签: jasmine protractor wait