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: docs/api/browser/interactivity.md
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,6 +162,58 @@ References:
162
162
- [WebdriverIO`browser.action`API](https://webdriver.io/docs/api/browser/action/): implemented via actions api with `move` plus three `down + up + pause` events in a row
function wheel(options: UserEventWheelOptions): Promise<void>
655
+
```
656
+
657
+
Triggersa [`wheel`event](https://developer.mozilla.org/en-US/docs/Web/API/Element/wheel_event) on an element. You can use the options to choose a general scroll `direction` or a precise `delta` value.
* Triggers a {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/wheel_event|`wheel` event} on an element.
212
+
*
213
+
* @param element - The target element to receive wheel events.
214
+
* @param options - Scroll configuration using `delta` or `direction`.
215
+
* @returns A promise that resolves when all wheel events have been dispatched.
* Triggers a {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/wheel_event|`wheel` event} on an element.
565
+
*
566
+
* @param options - Scroll configuration using `delta` or `direction`.
567
+
* @returns A promise that resolves when all wheel events have been dispatched.
0 commit comments