scroll, mousewheel, wheel, navigation, scriptless, script-less, scripted, step, view, stepview

Method ScrollTo

Scrolls object View until an object is found

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function ScrollTo( 
        Integer Delta [Optional],
        Integer SearchTimeout [Optional],
        Integer MaxScrolls [Optional], 
        Integer X [Optional],
        Integer Y [Optional], 
        Integer MsSpeed [Optional],
        Boolean Report [Optional],
        Boolean CaptureImage [Optional]
)

Step

ZAP Object step

ScrollTo

-80

2000

40

0

0

1500

true

false

Delta

Integer SearchTimeout

Integer MaxScrolls

X

Y

MsSpeed

Report

Boolean CaptureImage

Parameters

Delta (optional)

Type: Integer

Default value: -80

The amount to scroll in percentages of view height

SearchTimeout (optional)

Type: Integer

Default value: 2000

Object search timeout per Iteration in milliseconds

MaxScrolls (optional)

Type: Integer

Default value: 40

Maximum number of Scroll Iterations

X (optional)

Type: Integer

Default value: 0

Coordinate of mouse position during scrolling

Y (optional)

Type: Integer

Default value: 0

Coordinate of mouse position during scrolling

MsSpeed (optional)

Type: Integer

Default value: 1500

Time in milliseconds of the scrolling operation

Report (optional)

Type: Boolean

Default value: true

Report this step in the Test Results

CaptureImage (optional)

Type: Boolean

Default value: false

Add Object Image to the Report

Returns

No return value

Example

VBScript

Application("Demo").View("DemoView").Object("DemoObject").ScrollTo

JavaScript

Application("Demo").View("DemoView").Object("DemoObject").ScrollTo();

Step

ZAP Object step

ScrollTo

Script-Less next step

Comment

To use default value for optional parameters just leave field empty

Script-Less next step

Step

ZAP Object step

ScrollTo

-80

2000

40

0

0

1500

true

false

Script-Less next step

Comment

Set non-default optional parameters

Step

ZAP Object step

ScrollTo

200

3000

10

10

10

1000

true

true

Contact Us

3150 Roswell Rd NW

Atlanta, GA, 30305, USA

(800) 795-3552