我无法访问网格列中的数据。
除以下方法外,任何人都可以建议方法:
element.all(by.repeater('col in colContainer.renderedColumns track by col.uid').column('Entity'))
.getText()
.then(console.log);
最佳答案
尝试使用 element.all(by.css('tr')).get(rowNumber).all(by.css('td')).get(colNumber).getText();
关于javascript - 如何使用 Protractor 从网格中获取列数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31695117/