This commit is contained in:
Max Schmitt 2024-09-16 17:21:31 +02:00
parent 09d25f2dd8
commit 5467dbeb46
2 changed files with 5 additions and 3 deletions

View file

@ -1656,7 +1656,7 @@ var banana = await page.GetByRole(AriaRole.Listitem).Nth(2);
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.
Note that when both locators match something, the resulting locator will have multiple matches and violate [locator strictness](../locators.md#strictness) guidelines.
**Usage**

View file

@ -13060,8 +13060,10 @@ export interface Locator {
nth(index: number): Locator;
/**
* 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).
* 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](https://playwright.dev/docs/locators#strictness) guidelines.
*
* **Usage**
*