You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Type:**`(element: Element | Locator, options?: UserEventTripleClickOptions) => Promise<void>`
116
116
117
117
Triggers a triple click event on an element. Since there is no `tripleclick` in browser api, this method will fire three click events in a row, and so you must check [click event detail](https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event#usage_notes) to filter the event: `evt.detail === 3`.
-**Type:**`(element: Element | Locator, text: string, options?: UserEventTypeOptions) => Promise<void>`
238
238
239
239
::: warning
240
240
If you don't rely on [special characters](https://testing-library.com/docs/user-event/keyboard) (e.g., `{shift}` or `{selectall}`), it is recommended to use [`userEvent.fill`](#userevent-fill) instead.
@@ -267,7 +267,7 @@ References:
267
267
268
268
## userEvent.clear
269
269
270
-
-**Type:**`(element: Element) => Promise<void>`
270
+
-**Type:**`(element: Element | Locator) => Promise<void>`
-**Type:**`(element: Element | Locator, options?: UserEventHoverOptions) => Promise<void>`
341
341
342
342
This method moves the cursor position to the selected element. Please refer to your provider's documentation for detailed explanation about how this method works.
0 commit comments