ScrollWebElement

Top  Previous  Next

×V4.5Ø

S

A

W

WS

ü

Syntax -

ScrollWebElement <Percentage|MAXIMUM> <Element Identifier>

       Where:

               <Percentage> is an integer or a variable that contains an integer

               <Element Identifier> is an valid web element identifier as described in Identifying an Element

 

Description:

This command simulates a scroll action on a web container such as a DivSection. The percentage to scroll is relative to the current screen size. 90 percent is roughly the equivalent of a page down key stroke. You can also scroll up by using a negative number for the percentage.

 

If you use the keyword MAXIMUM instead of a percentage, this will behave as though you pressed the END key.

 

Soarian SmartUI: No

Chrome: Yes

 

Sample 1:

       The following statement simulates a 90 percent scroll down on a DivSection with a scroll bar.

ScrollWebElement 90 "Dialog=Main:wellFrame:DivSection,id=GridData,INDEX=1"

 

Sample 2:

       The following statement simulates a 50 percent scroll up on a DivSection with a scroll bar.

ScrollWebElement -50 ""Browser=*Soarian*:sframeInner->wellFrame->tabWell*:DivSection,id=worklistitems,INDEX=1""

 

Sample 3:

       The following statement simulates scrolling all the way down on a DivSection with a scroll bar.

ScrollWebElement MAXIMUM ""Browser=*Soarian*:sframeInner->wellFrame->tabWell*:DivSection,id=worklistitems,INDEX=1""

 

 

See Also:

ScrollWebPage