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

Function getByPlaceholder

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

Source from the content-addressed store, hash-verified

234 }
235
236 public getByPlaceholder(text: string | RegExp, options?: LocatorOptions): Locator {
237 return this.locator(getByPlaceholderSelector(text, options))
238 }
239
240 public getByTestId(testId: string | RegExp): Locator {
241 return this.locator(getByTestIdSelector(server.config.browser.locators.testIdAttribute, testId))

Callers

nothing calls this directly

Calls 1

locatorMethod · 0.45

Tested by

no test coverage detected