Im trying to loop a set of actions until an element is not longer visible. I have a list of elements on a table and when i delete one (using the actions mentioned) the previous one moves to the top of the table. The element on top always has the same xpath so I am just trying to remove the top element over and over until none remain. Im currently using the following method but it only removes the first element. Ive tried to use .size() but i get an error, any ideas?
public static void rieAllcards() {
if (firstCard.isDisplayed()) {
//Allow RIE to Open
clickToExpandCard();
clickEditIcon();
clickRemove();
} else {
System.out.println("Element not present");
}
}
Aucun commentaire:
Enregistrer un commentaire