From 5467dbeb46f72b50f4bbb86abf508fb3fe402cf0 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 16 Sep 2024 17:21:31 +0200 Subject: [PATCH] doclint --- docs/src/api/class-locator.md | 2 +- packages/playwright-core/types/types.d.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/src/api/class-locator.md b/docs/src/api/class-locator.md index ba3502df1d..88658b5494 100644 --- a/docs/src/api/class-locator.md +++ b/docs/src/api/class-locator.md @@ -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** diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index 6f5b92b1db..67bb51b192 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -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** *