From ee69de7726d2a03b01bdb4ac4c66f705124350b8 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Mon, 1 Mar 2021 11:53:27 -0800 Subject: [PATCH] docs: docs typos (#5658) --- docs/src/selectors.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') :::