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

Method element

packages/browser/context.d.ts:676–676  ·  view source on GitHub ↗

* Returns an element matching the selector. * * - If multiple elements match the selector, an error is thrown. * - If no elements match the selector, an error is thrown. * * @see {@link https://vitest.dev/api/browser/locators#element}

()

Source from the content-addressed store, hash-verified

674 * @see {@link https://vitest.dev/api/browser/locators#element}
675 */
676 element(): HTMLElement | SVGElement
677 /**
678 * Returns an array of elements matching the selector.
679 *

Callers 15

elementFunction · 0.80
toElementFunction · 0.80
wheelFunction · 0.80
prettyDOMFunction · 0.80
getElementFromUserInputFunction · 0.80
getNodeFromUserInputFunction · 0.80
ViewReport.spec.tsFile · 0.80
SmallTabs.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by 1

updateHtmlFunction · 0.64