From 43cde2db10803f7235e4ce4737aaba2f8fe8c69c Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Tue, 29 Nov 2022 05:00:30 +0100 Subject: [PATCH] docs(locator): fix #locate-by-test-id link (#19095) --- docs/src/locators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/locators.md b/docs/src/locators.md index 8f9126ad35..5de045109b 100644 --- a/docs/src/locators.md +++ b/docs/src/locators.md @@ -16,7 +16,7 @@ These are the recommended built in locators. - [`method: Page.getByPlaceholder`](#locate-by-placeholder) to locate an input by placeholder. - [`method: Page.getByAltText`](#locate-by-alt-text) to locate an element, usually image, by its text alternative. - [`method: Page.getByTitle`](#locate-by-title) to locate an element by its title attribute. -- [`method: Page.getByTestId`](#locate-by-testid) to locate an element based on its `data-testid` attribute (other attributes can be configured). +- [`method: Page.getByTestId`](#locate-by-test-id) to locate an element based on its `data-testid` attribute (other attributes can be configured). ```js await page.getByLabel('User Name').fill('John');