Skip to content

Commit

Permalink
fix: waitForText locator issue (#4039)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent authored Nov 30, 2023
1 parent 71485a5 commit 9d478ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helper/Playwright.js
Original file line number Diff line number Diff line change
Expand Up @@ -2652,7 +2652,7 @@ class Playwright extends Helper {
const _contextObject = this.frame ? this.frame : contextObject;
let count = 0;
do {
waiter = await _contextObject.locator(`:has-text('${text}')`).first().isVisible();
waiter = await _contextObject.locator(`:has-text("${text}")`).first().isVisible();
if (waiter) break;
await this.wait(1);
count += 1000;
Expand Down

0 comments on commit 9d478ef

Please sign in to comment.