Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to iterate list in java selenium

Iterator<WebElement> itr = allLinks.iterator();
while(itr.hasNext()) {
    System.out.println(itr.next().getText());
}
Source by sqa.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #iterate #list #java #selenium
ADD COMMENT
Topic
Name
3+9 =