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

Function getByLabelText

packages/browser/src/client/tester/locators/index.ts:232–234  ·  view source on GitHub ↗
(text: string | RegExp, options?: LocatorOptions)

Source from the content-addressed store, hash-verified

230 }
231
232 public getByLabelText(text: string | RegExp, options?: LocatorOptions): Locator {
233 return this.locator(getByLabelSelector(text, options))
234 }
235
236 public getByPlaceholder(text: string | RegExp, options?: LocatorOptions): Locator {
237 return this.locator(getByPlaceholderSelector(text, options))

Callers

nothing calls this directly

Calls 1

locatorMethod · 0.45

Tested by

no test coverage detected