Skip to content

Commit 9a102d2

Browse files
committed
fix: missing exit condition
1 parent 206ca71 commit 9a102d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: lib/helper/Playwright.js

+1
Original file line numberDiff line numberDiff line change
@@ -2582,6 +2582,7 @@ class Playwright extends Helper {
25822582
let count = 0;
25832583
do {
25842584
waiter = await _contextObject.locator(`:has-text('${text}')`).first().isVisible();
2585+
if (waiter) break;
25852586
await this.wait(1);
25862587
count += 1000;
25872588
} while (count <= waitTimeout);

0 commit comments

Comments
 (0)