From a2172e17990555854038fb2f83065a533ecf1b19 Mon Sep 17 00:00:00 2001 From: Patrick Kerschbaum Date: Mon, 12 Dec 2022 14:48:44 +0100 Subject: [PATCH] docs: fix broken link (#19394) --- 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 71db0ca3ba..1b947cf4e7 100644 --- a/docs/src/locators.md +++ b/docs/src/locators.md @@ -709,7 +709,7 @@ await page.Locator("//*[@id='tsf']/div[2]/div[1]/div[1]/div/div[2]/input").Click ``` :::tip When to use this -CSS and XPath are not recommended as the DOM can often change leading to non resilient tests. Instead, try to come up with a locator that is close to how the user perceives the page such as [role locators](#locate-by-role) or [define an explicit testing contract](#locate-by-testid) using test ids. +CSS and XPath are not recommended as the DOM can often change leading to non resilient tests. Instead, try to come up with a locator that is close to how the user perceives the page such as [role locators](#locate-by-role) or [define an explicit testing contract](#locate-by-test-id) using test ids. ::: ## Locate in Shadow DOM