From 918c26fa02a920ce9c05d5103a5964fe5f1e324c Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Wed, 14 Feb 2024 17:49:42 +0100 Subject: [PATCH] docs(other-locators): hide css:light selector engine (#29491) https://github.com/microsoft/playwright/issues/29479 --- docs/src/other-locators.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/docs/src/other-locators.md b/docs/src/other-locators.md index 2950d937b8..c37b97f6e6 100644 --- a/docs/src/other-locators.md +++ b/docs/src/other-locators.md @@ -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