docs: add reference to locator strictness if or resolves to multiple elements

This commit is contained in:
Max Schmitt 2024-09-16 15:07:41 +02:00
parent aeb4d182f7
commit bc363f660d
2 changed files with 3 additions and 2 deletions

View file

@ -1654,7 +1654,7 @@ var banana = await page.GetByRole(AriaRole.Listitem).Nth(2);
- alias-python: or_
- returns: <[Locator]>
Creates a locator that matches either of the two locators.
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).
**Usage**

View file

@ -13060,7 +13060,8 @@ export interface Locator {
nth(index: number): Locator;
/**
* Creates a locator that matches either of the two locators.
* Creates a locator that matches either of the two locators. [Locator strictness](https://playwright.dev/docs/api/locators#strictness) still
* applies (if it results in multiple elements, it throws).
*
* **Usage**
*