question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Mouse wheel or page.scroll

See original GitHub issue

It 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:closed
  • Created 4 years ago
  • Reactions:32
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

15reactions
yifeikongcommented, Mar 5, 2021

Another workaround of page.scroll is to simply use page.keyboard.press("PageDown").

12reactions
DJ-Glockcommented, Oct 30, 2020

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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found