From 09d25f2dd8863a63e2f9ed96a4d1b58edc3ebf42 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 16 Sep 2024 17:20:12 +0200 Subject: [PATCH] Update docs/src/api/class-locator.md Co-authored-by: Dmitry Gozman Signed-off-by: Max Schmitt --- docs/src/api/class-locator.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/api/class-locator.md b/docs/src/api/class-locator.md index 3e59152a18..ba3502df1d 100644 --- a/docs/src/api/class-locator.md +++ b/docs/src/api/class-locator.md @@ -1654,7 +1654,9 @@ var banana = await page.GetByRole(AriaRole.Listitem).Nth(2); - alias-python: or_ - returns: <[Locator]> -Creates a locator that matches either of the two locators. [Locator strictness](./locators.md#strictness) still applies (if it results in multiple elements, it throws). +Creates a locator matching all elements that match one or both of the two locators. + +Note that when both locators match something, the resulting locator will have multiple matches and violate [locator strictness](./locators.md#strictness) guidelines. **Usage**