Commit ab84a94
committed
fix: add role locator support and XPath handling to Puppeteer findElements/findElement
- Add role locator check in findElements to call findByRole (like Playwright)
- Add role locator check in findElement to call findByRole
- Fix XPath handling in findElement to use findElements (removes $x dependency)
- Fixes 6 failing Puppeteer tests:
- role locators with text filter (exact match case-sensitive)
- role locator combinations (checkbox state)
- grab elements by role
- waitForClickable by XPath (3 tests)
All role locator tests now pass with proper text filtering and exact matching.1 parent d41da19 commit ab84a94
1 file changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2877 | 2877 | | |
2878 | 2878 | | |
2879 | 2879 | | |
| 2880 | + | |
| 2881 | + | |
| 2882 | + | |
2880 | 2883 | | |
2881 | 2884 | | |
2882 | 2885 | | |
| |||
2934 | 2937 | | |
2935 | 2938 | | |
2936 | 2939 | | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
2937 | 2946 | | |
2938 | 2947 | | |
2939 | 2948 | | |
2940 | 2949 | | |
2941 | 2950 | | |
2942 | 2951 | | |
2943 | | - | |
2944 | | - | |
2945 | | - | |
2946 | | - | |
2947 | | - | |
2948 | | - | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
2949 | 2956 | | |
2950 | 2957 | | |
2951 | 2958 | | |
| |||
0 commit comments