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
Copy file name to clipboardExpand all lines: docs-src/api-footer.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,9 @@ Playwright also supports the following CSS extensions:
88
88
*`:text("string")` - Matches elements that contain specific text node. Learn more about [text selector](./selectors.md#css-extension-text).
89
89
*`:visible` - Matches only visible elements. Learn more about [visible selector](./selectors.md#css-extension-visible).
90
90
*`:light(selector)` - Matches in the light DOM only as opposite to piercing open shadow roots. Learn more about [shadow piercing](./selectors.md#shadow-piercing).
91
+
<!--
91
92
* `:right-of(selector)`, `:left-of(selector)`, `:above(selector)`, `:below(selector)`, `:near(selector)`, `:within(selector)` - Match elements based on their relative position to another element. Learn more about [proximity selectors](./selectors.md#css-extension-proximity).
93
+
-->
92
94
93
95
For convenience, selectors in the wrong format are heuristically converted to the right format:
94
96
- selector starting with `//` or `..` is assumed to be `xpath=selector`;
Copy file name to clipboardExpand all lines: docs/api.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5460,7 +5460,9 @@ Playwright also supports the following CSS extensions:
5460
5460
*`:text("string")` - Matches elements that contain specific text node. Learn more about [text selector](./selectors.md#css-extension-text).
5461
5461
*`:visible` - Matches only visible elements. Learn more about [visible selector](./selectors.md#css-extension-visible).
5462
5462
*`:light(selector)` - Matches in the light DOM only as opposite to piercing open shadow roots. Learn more about [shadow piercing](./selectors.md#shadow-piercing).
5463
+
<!--
5463
5464
* `:right-of(selector)`, `:left-of(selector)`, `:above(selector)`, `:below(selector)`, `:near(selector)`, `:within(selector)` - Match elements based on their relative position to another element. Learn more about [proximity selectors](./selectors.md#css-extension-proximity).
5465
+
-->
5464
5466
5465
5467
For convenience, selectors in the wrong format are heuristically converted to the right format:
5466
5468
- selector starting with `//` or `..` is assumed to be `xpath=selector`;
Playwright provides a few proximity selectors based on the page layout. These can be combined with regular CSS for better results, for example `input:right-of(:text("Password"))` matches an input field that is to the right of text "Password".
0 commit comments