"ScrollIntoView" method could be imporved? #134
Closed
GHRyunosuke
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
Thanks for reporting. I've fixed it and have a new commit ready soon with that and some other things. |
Beta Was this translation helpful? Give feedback.
1 reply
-
With v5.9, this issue has been solved. As discussed elsewhere, the scroll animation when smooth scrolling is async, meaning that subsequent commands can interfere with the scroll if it has not ended. The solution I've implemented is to wait until the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@GCuser99 and @6DiegoDiego9
I found that "ScrollIntoView" is not working properly, what about just rewrite the method using ExecuteScript or similar?
Call driver.ExecuteScript("arguments[0].scrollIntoView(true);", element) --> worked very well
element.ScrollIntoView --> does not work (it does scroll a tiny little bit...but way from scrolling the element into view)
Beta Was this translation helpful? Give feedback.
All reactions