serenity is returning the screen reader text along with the visible text in the screen. How to get text which is visible to the user?
public static Target TransactionTypeOption = Target.the("Transaction Type options").located(By.xpath("//ipb-dropdown[@class='type-dropdown ']//li//div"));
List<String> options = Text.of(TransactionTypeOption).viewedBy(actor).asList();
I have used bootstrap Sr-only class for the screen reader text. So, I just wanted to read the first content which is "All Transactions" but serenity is returning me "All Transactions white spaces , current selection"
Aucun commentaire:
Enregistrer un commentaire