From 0c872359411a730095fcd79ad04d14a2e1206ed1 Mon Sep 17 00:00:00 2001 From: damar Zaky Date: Sun, 14 Jul 2024 14:50:55 +0700 Subject: [PATCH] docs(other-locators.md): Improve grammar Signed-off-by: damar Zaky --- docs/src/other-locators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/other-locators.md b/docs/src/other-locators.md index c37b97f6e6..b42407231d 100644 --- a/docs/src/other-locators.md +++ b/docs/src/other-locators.md @@ -668,7 +668,7 @@ We recommend [locating by label text](./locators.md#locate-by-label) instead of Targeted input actions in Playwright automatically distinguish between labels and controls, so you can target the label to perform an action on the associated control. -For example, consider the following DOM structure: ``. You can target the label by it's "Password" text using [`method: Page.getByText`]. However, the following actions will be performed on the input instead of the label: +For example, consider the following DOM structure: ``. You can target the label by its "Password" text using [`method: Page.getByText`]. However, the following actions will be performed on the input instead of the label: - [`method: Locator.click`] will click the label and automatically focus the input field; - [`method: Locator.fill`] will fill the input field; - [`method: Locator.inputValue`] will return the value of the input field;