MCPcopy
hub / github.com/vitest-dev/vitest / nth

Function nth

packages/browser/src/client/tester/locators/index.ts:314–316  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

312 }
313
314 public nth(index: number): Locator {
315 return this.locator(`nth=${index}`)
316 }
317
318 public first(): Locator {
319 return this.nth(0)

Callers

nothing calls this directly

Calls 1

locatorMethod · 0.45

Tested by

no test coverage detected