We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f40a8e1 commit 7f8ae35Copy full SHA for 7f8ae35
lib/helper/Playwright.js
@@ -2808,8 +2808,9 @@ class Playwright extends Helper {
2808
2809
return Promise.race([
2810
// Strategy 1: waitForFunction that checks both body AND title text
2811
+ // Use this.page instead of contextObject because FrameLocator doesn't have waitForFunction
2812
// Original only checked document.body.innerText, missing title text like "TestEd"
- contextObject.waitForFunction(
2813
+ this.page.waitForFunction(
2814
function (text) {
2815
// Check body text (original behavior)
2816
if (document.body && document.body.innerText && document.body.innerText.indexOf(text) > -1) {
0 commit comments