Skip to content

Commit 6c88758

Browse files
author
DavertMik
committed
fixed wait test for wait for text
1 parent 4f359d3 commit 6c88758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/helper/Playwright.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2794,7 +2794,7 @@ class Playwright extends Helper {
27942794
new Promise((_, reject) => {
27952795
setTimeout(() => reject(errorMessage), waitTimeout)
27962796
}),
2797-
contextObject.waitForFunction(text => document.body && document.body.innerText.indexOf(text) > -1, text, { timeout: timeoutGap }),
2797+
this.page.waitForFunction(text => document.body && document.body.innerText.indexOf(text) > -1, text, { timeout: timeoutGap }),
27982798
promiseRetry(
27992799
async () =>
28002800
contextObject

0 commit comments

Comments
 (0)