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
{{ message }}
This repository was archived by the owner on Aug 6, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+31-2Lines changed: 31 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,8 +46,37 @@ or
46
46
```bash
47
47
yarn add --dev playwright-testing-library
48
48
```
49
+
### 2a. Use _extend @playwright/test selectors_
49
50
50
-
### 2a. Use _standalone queries_
51
+
@playwright/test allows you to [extend the selectors](https://playwright.dev/docs/extensibility/#custom-selector-engines) that are available when making a locator. When testing this way it doesn't make sense to differentiate the queryBy and queryAllBy queries or use the get and find queries since we can leave it to playwright to be angry when you try to click a locator that matches multiple elements.
52
+
53
+
You can use a Regex in these selectors, but since they are strings remember to escape any special characters as normal.
54
+
55
+
You can use >> as normal to chain selectors in a locator.
0 commit comments