MCPcopy
hub / github.com/vuejs/core / $eval

Method $eval

packages/vue/__tests__/e2e/e2eBrowserUtils.ts:116–116  ·  view source on GitHub ↗
(selector: string, fn: (node: Element) => R | Promise<R>)

Source from the content-addressed store, hash-verified

114 evaluate<Arg, R>(fn: (arg: Arg) => R | Promise<R>, arg: Arg): Promise<R>
115 exposeFunction(name: string, fn: (...args: any[]) => any): Promise<void>
116 $eval<R>(selector: string, fn: (node: Element) => R | Promise<R>): Promise<R>
117 $$eval<R>(
118 selector: string,
119 fn: (nodes: Element[]) => R | Promise<R>,

Callers 13

assertLabelsFunction · 0.80
textFunction · 0.80
valueFunction · 0.80
htmlFunction · 0.80
classListFunction · 0.80
childrenFunction · 0.80
styleFunction · 0.80
isVisibleFunction · 0.80
isCheckedFunction · 0.80
isFocusedFunction · 0.80
setValueFunction · 0.80
clearValueFunction · 0.80

Calls

no outgoing calls

Tested by 12

assertLabelsFunction · 0.64
textFunction · 0.64
valueFunction · 0.64
htmlFunction · 0.64
classListFunction · 0.64
childrenFunction · 0.64
styleFunction · 0.64
isVisibleFunction · 0.64
isCheckedFunction · 0.64
isFocusedFunction · 0.64
setValueFunction · 0.64
clearValueFunction · 0.64