【发布时间】:2017-11-12 07:14:04
【问题描述】:
我有带有sortable columns 的表,当单击排序列时,我需要等待排序完成,以检测表中的数据更改我试图将td 中的当前文本保存在变量中,然后在@987654323 中进行比较@ 到第一个 td 的新文本
waitForTDValueChange(currentValue: string, index: number): void {
browser.wait(
() => element.all(by.css('td[data-header="HEADERNAME"]'))
.get(index)
.getText()
.then((txt) => {
return txt !== currentValue;
}), 30000);
}
这是我的代码,但它会抛出 Stale Element Reference Exception..
有什么想法吗?
【问题讨论】:
标签: angular selenium typescript protractor e2e-testing