Context object.
Selector for input element to clear.
fillByXPath
with an empty text instead.Keep in mind that using the helper "clearInputByXPath" 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 clearInputByXPath(ctx, '//input[@id="firstName"]');
Generated using TypeDoc
Clears the value in an input element by Xpath.