Skip to content

Commit

Permalink
Fix repeatable buttons test
Browse files Browse the repository at this point in the history
  • Loading branch information
timja committed Dec 2, 2021
1 parent ebd5bc4 commit 5f6fccf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/src/test/java/lib/form/RepeatableTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,10 @@ private HtmlButton getHtmlButton(HtmlForm form, String buttonCaption, boolean is
* @return list of buttons
*/
private List<?> getButtonsList(HtmlForm form, String buttonCaption) {
return form.getByXPath("//button[text() = '" + buttonCaption + "']");
return form.getByXPath(
String.format("//button[text() = '%s'] | //button[@title = '%s']", buttonCaption, buttonCaption
)
);
}

@TestExtension
Expand Down

0 comments on commit 5f6fccf

Please sign in to comment.