diff --git a/lib/helper/Playwright.js b/lib/helper/Playwright.js index 3708a808d..d85b91916 100644 --- a/lib/helper/Playwright.js +++ b/lib/helper/Playwright.js @@ -2582,6 +2582,7 @@ class Playwright extends Helper { let count = 0; do { waiter = await _contextObject.locator(`:has-text('${text}')`).first().isVisible(); + if (waiter) break; await this.wait(1); count += 1000; } while (count <= waitTimeout);