Context object.
Xpath selector.
A text to type into field.
Optional
options: FillOptionsTriggers an event for each character. If you want to keep the existing text, use the helper "typeByXPath".
await fillByXPath(ctx, '//input[@id="message"]', 'Hello')
Generated using TypeDoc
Types the value into a form field by Xpath, replacing the existing text.