Types the value into a form field, replacing the existing text.
Context object.
Css selector.
A text to type into field.
Optional
Triggers an event for each character. If you want to keep the existing text, use the helper "type".
await fill(ctx, 'input', 'Hello'); Copy
await fill(ctx, 'input', 'Hello');
Types the value into a form field, replacing the existing text.