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

Method ScrollWheel

Scrolls an object or entire view of the AUT

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function ScrollWheel( 
        Integer Delta,
        Integer X [Optional],
        Integer Y [Optional], 
        Integer MsSpeed [Optional],
        Boolean Report [Optional]
)

Step

ZAP Object step

ScrollWheel

2000

0

0

1500

true

Delta

X

Y

MsSpeed

Report

Parameters

Delta

Type: Integer

The amount to scroll

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

Returns

No return value

Example

VBScript

Application("Demo").ScrollWheel -2000, 300, 300, 1500, true

JavaScript

Application("Demo").ScrollWheel(-2000, 300, 300, 1500, true);

Step

ZAP Object step

ScrollWheel

-2000

Script-Less next step

Comment

To use default value for optional parameters just leave field empty

Script-Less next step

Step

ZAP Object step

ScrollWheel

-2000

0

0

1500

true

Script-Less next step

Comment

Set non-default optional parameters

Script-Less next step

Step

ZAP Object step

ScrollTo

3000

10

10

1000

false

Contact Us

1425 Market Blvd Suite 530-230

Roswell, GA 30076, USA

(800) 795-3552