Commit 66ce91b
committed
fix(elements): correctly detect parenthesized XPath expressions
Some valid XPath expressions are wrapped in parentheses, e.g.
`(//div)[last()]`. These were previously misclassified as CSS
selectors. Added explicit detection for '(/' prefix in
`_get_expression_type`.
test(elements): add cases for '(//div)[last()]' and similar XPath1 parent da95993 commit 66ce91b
File tree
2 files changed
+11
-1
lines changed- pydoll/elements/mixins
- tests
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
481 | | - | |
| 481 | + | |
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
204 | 214 | | |
205 | 215 | | |
206 | 216 | | |
| |||
0 commit comments