Context object.
Selector for input field.
Value to type into input field.
fillByXPath
instead.Keep in mind that using the helper "clearAndTypeByXpath" on form fields will not trigger change events, and the website will not see the change. In this case, one almost always want to use "fillByXPath" or "typeByXPath" instead.
await clearAndTypeByXpath(ctx, '//input[@id="firstName"]', 'John');
Generated using TypeDoc
Selects an input element by Xpath, clears and types into it.