Repository navigation
Commit 19db0e2
feat(playwright): explain element not found errors
Add explainNotFound option (default true). When a step fails with
ElementNotFound, the error gets hints: a match inside an iframe, matches
outside the current within(), hidden-only matches with visibleLocator,
and up to 3 similar elements ranked by ARIA names or CSS ids/classes.
Bounded at 300 ms and runs only after a failed lookup.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 352466d commit 19db0e2
6 files changed
Lines changed: 241 additions & 52 deletions
File tree
- docs
- lib
- helper
- errors
- test
- helper
- unit/helper
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
222 | 238 | | |
223 | 239 | | |
224 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
0 commit comments