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

Function or

packages/browser/src/client/tester/locators/index.ts:284–286  ·  view source on GitHub ↗
(locator: Locator)

Source from the content-addressed store, hash-verified

282 }
283
284 public or(locator: Locator): Locator {
285 return this.locator(`internal:or=${JSON.stringify(locator._pwSelector || locator.selector)}`)
286 }
287
288 public query(): HTMLElement | SVGElement | null {
289 const parsedSelector = this._parsedSelector || (this._parsedSelector = selectorEngine.parseSelector(this._pwSelector || this.selector))

Callers

nothing calls this directly

Calls 1

locatorMethod · 0.45

Tested by

no test coverage detected