mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: mention locator.nth is zero based (#12750)
Co-authored-by: Pavel Feldman <pavel.feldman@gmail.com>
This commit is contained in:
parent
fff4681c6c
commit
01beb6310a
@ -128,7 +128,7 @@ The method finds an element matching the specified selector in the FrameLocator'
|
||||
## method: FrameLocator.nth
|
||||
- returns: <[FrameLocator]>
|
||||
|
||||
Returns locator to the n-th matching frame.
|
||||
Returns locator to the n-th matching frame. It's zero based, `nth(0)` selects the first frame.
|
||||
|
||||
### param: FrameLocator.nth.index
|
||||
- `index` <[int]>
|
||||
|
||||
@ -550,7 +550,7 @@ The method finds an element matching the specified selector in the `Locator`'s s
|
||||
## method: Locator.nth
|
||||
- returns: <[Locator]>
|
||||
|
||||
Returns locator to the n-th matching element.
|
||||
Returns locator to the n-th matching element. It's zero based, `nth(0)` selects the first element.
|
||||
|
||||
### param: Locator.nth.index
|
||||
- `index` <[int]>
|
||||
|
||||
4
packages/playwright-core/types/types.d.ts
vendored
4
packages/playwright-core/types/types.d.ts
vendored
@ -9403,7 +9403,7 @@ export interface Locator {
|
||||
}): Locator;
|
||||
|
||||
/**
|
||||
* Returns locator to the n-th matching element.
|
||||
* Returns locator to the n-th matching element. It's zero based, `nth(0)` selects the first element.
|
||||
* @param index
|
||||
*/
|
||||
nth(index: number): Locator;
|
||||
@ -13846,7 +13846,7 @@ export interface FrameLocator {
|
||||
}): Locator;
|
||||
|
||||
/**
|
||||
* Returns locator to the n-th matching frame.
|
||||
* Returns locator to the n-th matching frame. It's zero based, `nth(0)` selects the first frame.
|
||||
* @param index
|
||||
*/
|
||||
nth(index: number): FrameLocator;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user