试试这个代码:
//Assume driver is intialized properly.int iCount = 0;iCount = driver.findElements(By.xpath("Xpath Value")).size());的
iCount具有相同的元件的数目
xpath的值。

试试这个代码:
//Assume driver is intialized properly.int iCount = 0;iCount = driver.findElements(By.xpath("Xpath Value")).size());的
iCount具有相同的元件的数目
xpath的值。