Interface: UserEventInstance
Defined in: user-event.ts:30
Instance returned by userEvent.setup() with bound options.
Properties
clear()
clear: (
element) =>Promise<void>
Defined in: user-event.ts:38
Clears the text content of an input element
Parameters
| Parameter | Type |
|---|---|
element | Widget |
Returns
Promise<void>
click()
click: (
element) =>Promise<void>
Defined in: user-event.ts:32
Simulates a click on the element
Parameters
| Parameter | Type |
|---|---|
element | Widget |
Returns
Promise<void>
dblClick()
dblClick: (
element) =>Promise<void>
Defined in: user-event.ts:34
Simulates a double-click on the element
Parameters
| Parameter | Type |
|---|---|
element | Widget |
Returns
Promise<void>
type()
type: (
element,text) =>Promise<void>
Defined in: user-event.ts:36
Types text into an input element
Parameters
| Parameter | Type |
|---|---|
element | Widget |
text | string |
Returns
Promise<void>