robotframework / SeleniumLibrary

Web testing library for Robot Framework
Apache License 2.0
1.36k stars 752 forks source link

Enhancement Request: Keyword to control the speed when scrolling an element into view #1910

Open paguilera opened 3 weeks ago

paguilera commented 3 weeks ago

Creating this ticket at Ed's request. Bringing over the Slack communication.

Is there a way in Selenium Library to control the speed used to scroll an element into view?

More info: We have an iFrame that has a button that doesn't enable until a user scrolls to the bottom of the content. The button "fills" a progress bar as the user scrolls. When using Scroll to Element we drop to the bottom too quickly for the button to enable.

Follow up: we ended up using a Javascript call to use scrollIntoView with smooth behavior to get this to work as needed. Still curious if there's a Keyword approach that would do the same or similar, but no pressing need now.