w3c / webdriver

Remote control interface that enables introspection and control of user agents.
https://w3c.github.io/webdriver/
Other
676 stars 190 forks source link

w3c wheel actions sometimes can't perform deltaX,deltaY movement #1798

Closed udarrr closed 4 months ago

udarrr commented 4 months ago

Issue Description: wheel actions sometimes can't perform movement with deltaX and deltaY as with random deltaX,deltaY value as with correct. It's been scrolling as it would be deltaX,deltaY = 0

Steps to reproduce: here is reproducible an example https://github.com/udarrr/actionsDeltaBug

whimboo commented 4 months ago

I assume that in some cases different webdriver implementations throw a "not interactable" error? But that's not clear to me as of this point. Maybe you can clarify?

Further notice that the scroll action of a wheel input device is not meant to be used for scrolling a particular element into view. It will indeed work for elements that are already partially (in-view center point is visible in the current viewport) visible, but it fails on purpose otherwise.

What you probably want here is https://github.com/w3c/webdriver/issues/1005.

I'm going to close this issue as dupe for now. If I was wrong with my assumption please let me know and we can re-open.