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

Method locator

packages/browser-preview/src/locators.ts:91–93  ·  view source on GitHub ↗
(selector: string)

Source from the content-addressed store, hash-verified

89 }
90
91 protected locator(selector: string) {
92 return new PreviewLocator(`${this._pwSelector} >> ${selector}`, this._container)
93 }
94
95 protected elementLocator(element: Element) {
96 return new PreviewLocator(

Callers 15

extendFunction · 0.45
getByRoleFunction · 0.45
getByAltTextFunction · 0.45
getByLabelTextFunction · 0.45
getByPlaceholderFunction · 0.45
getByTestIdFunction · 0.45
getByTextFunction · 0.45
getByTitleFunction · 0.45
filterFunction · 0.45
andFunction · 0.45
orFunction · 0.45
nthFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected