From 5f6fccf78667735a35d1d4678449a535f2f6b375 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Thu, 2 Dec 2021 09:05:34 +0000 Subject: [PATCH] Fix repeatable buttons test --- test/src/test/java/lib/form/RepeatableTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/src/test/java/lib/form/RepeatableTest.java b/test/src/test/java/lib/form/RepeatableTest.java index 7d0a1f78bbc0..bafa499657ae 100644 --- a/test/src/test/java/lib/form/RepeatableTest.java +++ b/test/src/test/java/lib/form/RepeatableTest.java @@ -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