我使用testcafe
测试框架得到表的所有单元格的文本 - https://devexpress.github.io/testcafe。
我写了下面的代码:我如何可以用testcafe
const table = Selector('#table');
for(let i = 0; i < table.rows.length; i++){
for(let j = 0; j < table.columns.length; j++) {
let tdText = await table.rows[i].cells[j].textContent;
//another actions
}
}
我如何能得到使用testcafe表的所有单元格的文本?
'让I'大概应该是'让i'和'table.rows.lenght'大概应该是'table.rows.length'。 – RobG
好的。我更新了代码示例。它仍然不起作用。 – mlosev