我正在尝试下面的代码来获取表行,但我需要选择表中不同位置的行。
@测试
公共无效 testRowSelectionUsingControlKey() {
列出 tableRows = driver.findElements(By.xpath("//table[@class='iceDatTbl']/tbody/tr"));
for(int i=0; i<tableRows.size(); i++){
System.out.println(tableRows.get(i).getText());
}