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

Method clear

packages/browser-webdriverio/src/locators.ts:113–118  ·  view source on GitHub ↗
(options?: UserEventClearOptions)

Source from the content-addressed store, hash-verified

111 }
112
113 public override clear(options?: UserEventClearOptions): Promise<void> {
114 return ensureAwaited(async (error) => {
115 const element = await this.findElement(options)
116 return this.withElement(element, error).clear(options)
117 })
118 }
119
120 public override fill(text: string, options?: UserEventFillOptions): Promise<void> {
121 return ensureAwaited(async (error) => {

Callers

nothing calls this directly

Calls 4

withElementMethod · 0.95
ensureAwaitedFunction · 0.85
findElementMethod · 0.80
clearMethod · 0.65

Tested by

no test coverage detected