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

Function clear

packages/browser/src/client/tester/context.ts:81–83  ·  view source on GitHub ↗
(element, options)

Source from the content-addressed store, hash-verified

79 return convertToLocator(element).selectOptions(value, options)
80 },
81 clear(element, options) {
82 return convertToLocator(element).clear(options)
83 },
84 hover(element, options) {
85 return convertToLocator(element).hover(options)
86 },

Callers

nothing calls this directly

Calls 3

convertToLocatorFunction · 0.85
toElementFunction · 0.85
clearMethod · 0.65

Tested by

no test coverage detected