docs: add reference to locator strictness if or resolves to multiple elements
This commit is contained in:
parent
aeb4d182f7
commit
bc363f660d
|
|
@ -1654,7 +1654,7 @@ var banana = await page.GetByRole(AriaRole.Listitem).Nth(2);
|
||||||
- alias-python: or_
|
- alias-python: or_
|
||||||
- returns: <[Locator]>
|
- 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**
|
**Usage**
|
||||||
|
|
||||||
|
|
|
||||||
3
packages/playwright-core/types/types.d.ts
vendored
3
packages/playwright-core/types/types.d.ts
vendored
|
|
@ -13060,7 +13060,8 @@ export interface Locator {
|
||||||
nth(index: number): 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**
|
* **Usage**
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue