Vote count:
 
 0 
The line of code I have here is:
List<WebElement> element = driver.findElements(By.xpath("*"));
for(int i=0; i<element.size(); i++)
{
System.out.println(i + element.get(i).getText());
}
For some reason when iteratiing through the list it gives me back all the elements in one index of the list. In other words the size of the element is only 1.
How can I return the elements into multiple indexes of the list?
asked 1 min ago 
Aucun commentaire:
Enregistrer un commentaire