Wrap #clearFiltersButton.click in a tryMultiple

This commit is contained in:
2023-01-30 15:33:28 -06:00
parent bc00ea0c9c
commit 8709f37324

View File

@ -94,7 +94,7 @@ public class QueryScreenTest extends QBaseSeleniumTest
// click the 'x' clear icon, then yes, then expect another query // // click the 'x' clear icon, then yes, then expect another query //
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
qSeleniumJavalin.beginCapture(); qSeleniumJavalin.beginCapture();
qSeleniumLib.waitForSelector("#clearFiltersButton").click(); qSeleniumLib.tryMultiple(3, () -> qSeleniumLib.waitForSelector("#clearFiltersButton").click());
qSeleniumLib.waitForSelectorContaining("BUTTON", "Yes").click(); qSeleniumLib.waitForSelectorContaining("BUTTON", "Yes").click();
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////