mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
docs: docs typos (#5658)
This commit is contained in:
parent
eb980207fc
commit
ee69de7726
@ -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')
|
||||
:::
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user