Commit 5d53ace
fix: WebDriver strict mode - use Array.from for element collections and fix HTML unwrap regex
WebdriverIO $$ returns a special collection, not a plain array. Using
Array.from() before .map() ensures WebElement[] is a real array with .length.
Also fix simplifyHtmlElement regex to handle cases where <head> tag is absent
in the parse5 output.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ca7ba6b commit 5d53ace
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3300 | 3300 | | |
3301 | 3301 | | |
3302 | 3302 | | |
3303 | | - | |
| 3303 | + | |
3304 | 3304 | | |
3305 | 3305 | | |
3306 | 3306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
0 commit comments