[Feature] Mouse wheel or page.scroll
See original GitHub issueIt would be nice to have a cross browser way to test scrolling.
Ex. via CDP
await client.send("Input.dispatchMouseEvent", { type: "mouseWheel", deltaX: 0, deltaY: 500, x: 0, y: 0 });
For an auto-wait API, you could keep trying to scroll to a point and timeout if it cannot reach it.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:32
- Comments:18 (6 by maintainers)
Top Results From Across the Web
Using your mouse scroll wheel - Kindergarten IT Program
The mouse scroll wheel is located in the middle of the left and right buttons of your mouse. It's commonly used for easy...
Read more >What are the default buttons and wheel assignments for my ...
What are the default buttons and wheel assignments for my mouse? ; Wheel. Vertical scrolling. In a scrollable window, rotate the wheel toward...
Read more >What to Do If Your Mouse Scroll Wheel Jumps in Windows 10 ...
Under the Basic Settings tab, disable Accelerated Vertical Scrolling and Reverse Scroll Direction.
Read more >How to Fix Mouse Wheel Scrolling Problem (Easy Way)
Best Fix if mouse wheel not working or mouse wheel reset. mouse wheel not scrolling or mouse wheel fail is common issue. If...
Read more >Scroll wheel - Wikipedia
A scroll wheel is a wheel used for scrolling. The term usually refers to such wheels found on computer mice (where they can...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Another workaround of
page.scroll
is to simply usepage.keyboard.press("PageDown")
.I have another case when mouse wheel is required - zooming. I have a webpage where zooming in/out works only with Ctrl+Mouse Wheel. So there is not way to do it with scrollIntoViewIfNeeded 😃