Context object.
Selector for input element to clear and type.
Value to type into input element.
Optional
options: WaitForSelectorOptionsfill
instead.Keep in mind that using the helper "clearAndType" 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 "fill" or "type" instead.
await clearAndType(ctx, 'input[name="firstName"]', 'some value');
Generated using TypeDoc
Clears an input element and types the value into it.