【发布时间】:2015-10-06 12:10:03
【问题描述】:
我正在使用 Protractor 进行 e2e 测试。目前我正在使用很多工作流超时。我想用browser.wait 替换它。问题是我并不总是知道要等什么。例如切换到其他帧时。
这个特定的问题是等待中继器元素显示。
这是我当前的代码:
flow.timeout(5000);
element.all(by.repeater('whatsNewItem in homePageWhatsNewItems')).count().then(function (firstCount) {
console.log("number of WhatsNew=" + firstCount);
expect(firstCount >= 5).toBeTruthy();
});
我想替换 browser.wait(.....) 中的 flow.timeout
有什么想法吗?
【问题讨论】:
标签: javascript protractor wait angularjs-e2e e2e-testing