Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: docs typos (#5658)

Andrey Lushnikovee69de7726d2
diff --git a/docs/src/selectors.md b/docs/src/selectors.md
index 1dc9e431ea..71099afbbf 100644
--- a/docs/src/selectors.md
+++ b/docs/src/selectors.md
@@ -537,7 +537,7 @@ converts `'//html/body'` to `'xpath=//html/body'`.
## id, data-testid, data-test-id, data-test selectors
-Playwright supports a shorthand for selecting elements using certain elements. Currently, only
+Playwright supports a shorthand for selecting elements using certain attributes. Currently, only
the following attributes are supported:
- `id`
@@ -578,7 +578,7 @@ page.click('data-test-id=submit')
```
:::note
-Attribute selectors piece shadow DOM. To opt-out from this behavior, use `:light` suffix after attribute, for example `page.click('data-test-id:light=submit')
+Attribute selectors pierce shadow DOM. To opt-out from this behavior, use `:light` suffix after attribute, for example `page.click('data-test-id:light=submit')
:::