warningUse locator-based locator.type() instead.
Type the text in the first element found that matches the selector.
Parameter | Type | Default | Description |
---|---|---|---|
selector | string | '' | A selector to search for an element. If there are multiple elements satisfying the selector, the first will be used. |
text | string | '' | A text to type into a focused element. |
options | object | null |