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,
});
Generated using TypeDoc
Types into a form field by Xpath, after the existing text.