diff --git a/lib/helper/Playwright.js b/lib/helper/Playwright.js index 26b5850fc..e0bce8a84 100644 --- a/lib/helper/Playwright.js +++ b/lib/helper/Playwright.js @@ -2794,7 +2794,7 @@ class Playwright extends Helper { new Promise((_, reject) => { setTimeout(() => reject(errorMessage), waitTimeout) }), - contextObject.waitForFunction(text => document.body && document.body.innerText.indexOf(text) > -1, text, { timeout: timeoutGap }), + this.page.waitForFunction(text => document.body && document.body.innerText.indexOf(text) > -1, text, { timeout: timeoutGap }), promiseRetry( async () => contextObject