Each web object in Rapise has DoEnsureVisible action.
The name of the action is self explanatory. It forces a browser to scroll the viewport in a way to make the element visible.
Note that Rapise automatically executes this action before performing DoClick
and DoDblClick
actions.
Rapise relies on a browser to perform scrolling. It always works if application developers use native scrollbars. But sometimes scrollbars (most probably horizontal) are custom elements implemented in a web framework used by the application. In this case learn the scrollbar element and use DoClick
action with offset to click it to perform scrolling. Use DoGetRect
action to check that position of the element after scrolling satisfies your needs.