2016-12-01 41 views

回答

1

嘗試從表格中獲取所有子女tr標記,並使用count()方法獲取存在的行數。

let table = element(by.css('#myTable')); 
let rowCount = table.all(by.css("tr")).count()