ScrollToMax Method

Class

ScrollBar.

Action

Scrolls the scroll bar to its maximum position.

Syntax

scrollbar.ScrollToMax ( )

Notes

ScrollToMax scrolls a scroll bar to its maximum position. It then checks the internal position of the scroll bar to ensure that it is at the maximum position, and moves it if it is not. This verification step is required because some applications move the thumb back one or two lines after it is dragged all the way down or over.

It is possible for the scroll bar to have an end range that can’t be reached by clicking the arrows. In this case, Silk Test Classic generates the exception E_POS_NOT_REACHABLE.

Example

Open.Files.VScrollBar.ScrollToMax ()