From f0efbea7bd20196c5c3e3e988b5dba2bbf5e0f6a Mon Sep 17 00:00:00 2001 From: kobenguyent Date: Thu, 30 Nov 2023 06:00:43 +0100 Subject: [PATCH] fix: waitForText locator issue --- lib/helper/Playwright.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;