MCPcopy
hub / github.com/vuejs/core / getElement

Function getElement

packages/vue/__tests__/e2e/e2eBrowserUtils.ts:226–232  ·  view source on GitHub ↗
(selector: string)

Source from the content-addressed store, hash-verified

224 }
225
226 function getElement<T extends Element = Element>(selector: string): T {
227 const el = document.querySelector<T>(selector)
228 if (!el) {
229 throw new Error(`Unable to find element: ${selector}`)
230 }
231 return el
232 }
233
234 function createElementHandle<T extends Element>(node: T): ElementHandle<T> {
235 return {

Callers 15

$evalFunction · 0.85
clickFunction · 0.85
textFunction · 0.85
valueFunction · 0.85
htmlFunction · 0.85
classListFunction · 0.85
childrenFunction · 0.85
styleFunction · 0.85
isVisibleFunction · 0.85
isCheckedFunction · 0.85
isFocusedFunction · 0.85
setValueFunction · 0.85

Calls 1

querySelectorMethod · 0.80

Tested by

no test coverage detected