Context object.
XPath selector.
A text to type into field.
Triggers an event for each character. If you want to clear the field first, use the helper "fillByXPath".
await typeByXPath(ctx, '//input[@id="message"]', 'Hello');
await typeByXPath(ctx, '//input[@id="message"]', 'Hello', {
delay: 500,
clear: true,
blur: true,
});
Types into a form field by XPath, after the existing text.