diff --git a/lib/helper/Playwright.js b/lib/helper/Playwright.js index 91a4aa5f8..b4648d360 100644 --- a/lib/helper/Playwright.js +++ b/lib/helper/Playwright.js @@ -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;