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
Copy file name to clipboardexpand all lines: API.md
+14-14
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ to continue to emulate how actual browsers handle unfocusing a given element.
87
87
88
88
#### Parameters
89
89
90
-
*`target`**([string][64] | [Element][65])** the elementor selector to unfocus (optional, default `document.activeElement`)
90
+
*`target`**([string][64] | [Element][65] | IDOMElementDescriptor)** the element, selector, or descriptor to unfocus (optional, default `document.activeElement`)
91
91
92
92
#### Examples
93
93
@@ -129,7 +129,7 @@ You can use this to specifiy modifier keys as well.
129
129
130
130
#### Parameters
131
131
132
-
*`target`**([string][64] | [Element][65])** the elementor selector to click on
132
+
*`target`**([string][64] | [Element][65] | IDOMElementDescriptor)** the element, selector, or descriptor to click on
133
133
*`_options`**MouseEventInit** the options to be merged into the mouse events. (optional, default `{}`)
134
134
135
135
#### Examples
@@ -185,7 +185,7 @@ Use the `options` hash to change the parameters of the [MouseEvents][67].
185
185
186
186
#### Parameters
187
187
188
-
*`target`**([string][64] | [Element][65])** the elementor selector to double-click on
188
+
*`target`**([string][64] | [Element][65] | IDOMElementDescriptor)** the element, selector, or descriptor to double-click on
189
189
*`_options`**MouseEventInit** the options to be merged into the mouse events (optional, default `{}`)
190
190
191
191
#### Examples
@@ -212,7 +212,7 @@ events on the specified target.
212
212
213
213
#### Parameters
214
214
215
-
*`target`**([string][64] | [Element][65])** the elementor selector to enter text into
215
+
*`target`**([string][64] | [Element][65] | IDOMElementDescriptor)** the element, selector, or descriptor to enter text into
216
216
*`text`**[string][64]** the text to fill into the target element
217
217
218
218
#### Examples
@@ -242,7 +242,7 @@ to continue to emulate how actual browsers handle focusing a given element.
242
242
243
243
#### Parameters
244
244
245
-
*`target`**([string][64] | [Element][65])** the elementor selector to focus
245
+
*`target`**([string][64] | [Element][65] | IDOMElementDescriptor)** the element, selector, or descriptor to focus
246
246
247
247
#### Examples
248
248
@@ -256,11 +256,11 @@ Returns **[Promise][66]\<void>** resolves when the application is settled
256
256
257
257
### scrollTo
258
258
259
-
Scrolls DOM elementor selector to the given coordinates.
259
+
Scrolls DOM element, selector, or descriptor to the given coordinates.
260
260
261
261
#### Parameters
262
262
263
-
*`target`**([string][64] | [HTMLElement][68])** the elementor selector to trigger scroll on
263
+
*`target`**([string][64] | [HTMLElement][68] | IDOMElementDescriptor)** the element, selector, or descriptor to trigger scroll on
264
264
*`x`**[Number][69]** x-coordinate
265
265
*`y`**[Number][69]** y-coordinate
266
266
@@ -284,7 +284,7 @@ multiple attribute is set true on the HTMLSelectElement) then trigger
284
284
285
285
#### Parameters
286
286
287
-
*`target`**([string][64] | [Element][65])** the elementor selector for the select element
287
+
*`target`**([string][64] | [Element][65] | IDOMElementDescriptor)** the element, selector, or descriptor for the select element
288
288
*`options`**([string][64] | [Array][70]<[string][64]>)** the value/values of the items to select
289
289
*`keepPreviouslySelected`**[boolean][71]** a flag keep any existing selections (optional, default `false`)
290
290
@@ -365,7 +365,7 @@ Use the `options` hash to change the parameters of the tap events.
365
365
366
366
#### Parameters
367
367
368
-
*`target`**([string][64] | [Element][65])** the elementor selector to tap on
368
+
*`target`**([string][64] | [Element][65] | IDOMElementDescriptor)** the element, selector, or descriptor to tap on
369
369
*`options`**[Object][72]** the options to be merged into the touch events (optional, default `{}`)
370
370
371
371
#### Examples
@@ -384,7 +384,7 @@ Triggers an event on the specified target.
384
384
385
385
#### Parameters
386
386
387
-
*`target`**([string][64] | [Element][65])** the elementor selector to trigger the event on
387
+
*`target`**([string][64] | [Element][65] | IDOMElementDescriptor)** the element, selector, or descriptor to trigger the event on
388
388
*`eventType`**[string][64]** the type of event to trigger
389
389
*`options`**[Object][72]** additional properties to be set on the event
390
390
@@ -432,7 +432,7 @@ Optionally the user can also provide a POJO with extra modifiers for the event.
432
432
433
433
#### Parameters
434
434
435
-
*`target`**([string][64] | [Element][65])** the elementor selector to trigger the event on
435
+
*`target`**([string][64] | [Element][65] | IDOMElementDescriptor)** the element, selector, or descriptor to trigger the event on
436
436
*`eventType`**(`"keydown"` | `"keyup"` | `"keypress"`)** the type of event to trigger
437
437
*`key`**([number][69] | [string][64])** the `keyCode`(number) or `key`(string) of the event being triggered
438
438
*`modifiers`**[Object][72]?** the state of various modifier keys (optional, default `DEFAULT_MODIFIERS`)
@@ -466,7 +466,7 @@ per character of the passed text (this may vary on some browsers).
466
466
467
467
#### Parameters
468
468
469
-
*`target`**([string][64] | [Element][65])** the elementor selector to enter text into
469
+
*`target`**([string][64] | [Element][65] | IDOMElementDescriptor)** the element, selector, or descriptor to enter text into
470
470
*`text`**[string][64]** the test to fill the element with
471
471
*`options`**[Object][72]** {delay: x} (default 50) number of milliseconds to wait per keypress (optional, default `{}`)
472
472
@@ -618,7 +618,7 @@ interim DOM states (e.g. loading states, pending promises, etc).
618
618
619
619
#### Parameters
620
620
621
-
*`selector`**[string][64]** the selector to wait for
621
+
*`target`**([string][64] | IDOMElementDescriptor)** the selector or DOM element descriptor to wait for
622
622
*`options`**[Object][72]?** the options to be used (optional, default `{}`)
623
623
624
624
*`options.timeout`**[number][69]** the time to wait (in ms) for a match (optional, default `1000`)
@@ -876,7 +876,7 @@ Responsible for:
876
876
#### Parameters
877
877
878
878
*`context`**[Object][72]** the context to setup
879
-
*`options`**[Object][72]?** options used to override defaults
879
+
*`options`**[Object][72]?** options used to override defaults (optional, default `{}`)
880
880
881
881
*`options.waitForSettled`**[boolean][71]** should the teardown wait for `settled()`ness (optional, default `true`)
0 commit comments