Update docs/src/api/class-locator.md

Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
Max Schmitt 2024-09-16 17:20:12 +02:00 committed by GitHub
parent bc363f660d
commit 09d25f2dd8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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**