Skip to content

Commit

Permalink
docs: docs typos (microsoft#5658)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov authored and yury-s committed Mar 1, 2021
1 parent 9152585 commit 4292db6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/selectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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')
:::
Expand Down

0 comments on commit 4292db6

Please sign in to comment.