When selecting an item from the list gets a timeout. The item is selected, but the test ends with an error message. Does anyone know what I should change?
从列表中选择项目时会超时。该项目已被选中,但测试以错误消息结束。有谁知道我应该改变什么?
app.e2e-spec.ts
app.e2e-spec.ts
it('applications - select item from list', () => {
page.scroolPageDown();
page.clickLastPage();
page.selectItemFromList();
page.scroolPage();
});
app.po.ts
app.po.ts
selectItemFromList() {
return element
.all(by.css('.list-item .item-body'))
.last()
.click();
}
1 个解决方案
#1
0
Add more time to default timeout interval in conf.js file. In my tests I have this value:
在conf.js文件中为默认超时间隔添加更多时间。在我的测试中,我有这个值:
defaultTimeoutInterval: 200000,
#1
0
Add more time to default timeout interval in conf.js file. In my tests I have this value:
在conf.js文件中为默认超时间隔添加更多时间。在我的测试中,我有这个值:
defaultTimeoutInterval: 200000,