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

Function fill

packages/browser-playwright/src/commands/fill.ts:5–13  ·  view source on GitHub ↗
(
  context,
  selector,
  text,
  options = {},
)

Source from the content-addressed store, hash-verified

3import { getDescribedLocator } from './utils'
4
5export const fill: UserEventCommand<UserEvent['fill']> = async (
6 context,
7 selector,
8 text,
9 options = {},
10) => {
11 const element = getDescribedLocator(context, selector)
12 await element.fill(text, options)
13}

Callers

nothing calls this directly

Calls 2

getDescribedLocatorFunction · 0.90
fillMethod · 0.65

Tested by

no test coverage detected