Skip to content

Commit

Permalink
fixed wait test for wait for text
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Jan 6, 2025
1 parent 4f359d3 commit 6c88758
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 @@ -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
Expand Down

0 comments on commit 6c88758

Please sign in to comment.