mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-27 05:46:28 +03:00
docs(other-locators): hide css:light selector engine (#29491)
https://github.com/microsoft/playwright/issues/29479
This commit is contained in:
parent
593bf35eb7
commit
918c26fa02
@ -884,11 +884,6 @@ await page.Locator("data-test-id=submit").ClickAsync();
|
||||
Attribute selectors are not CSS selectors, so anything CSS-specific like `:enabled` is not supported. For more features, use a proper [css] selector, e.g. `css=[data-test="login"]:enabled`.
|
||||
:::
|
||||
|
||||
:::note
|
||||
Attribute selectors pierce shadow DOM. To opt-out from this behavior, use `:light` suffix after attribute, for example `page.locator('data-test-id:light=submit').click()`
|
||||
:::
|
||||
|
||||
|
||||
## Chaining selectors
|
||||
|
||||
:::warning
|
||||
|
Loading…
Reference in New Issue
Block a user