From 2ecf4ff202fd826e4f14a80b159ca8fe0c51f75d Mon Sep 17 00:00:00 2001 From: kobenguyent Date: Tue, 7 Nov 2023 12:42:50 +0100 Subject: [PATCH] fix: missing exit condition --- lib/helper/Playwright.js | 1 + 1 file changed, 1 insertion(+) 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);