You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use ::-p-xpath selector for Puppeteer 24.x+ instead of removed $x method
Puppeteer 24.x removed the $x() method from Page and Frame objects.
This commit updates findElements() to:
1. Use ::-p-xpath(xpath) selector syntax for Page/Frame objects
2. Detect Page/Frame by checking constructor.name (CdpPage, CdpFrame)
3. Keep ElementHandle XPath support using evaluateHandle approach
This fixes all iframe-related test failures where XPath queries
were failing because Frame objects no longer have $x method.
Fixes: 9 iframe tests now passing
Test results: 40/44 passing (91% pass rate)
0 commit comments