swipe, move, drag, drop, dragndrop, draganddrop, scriptless, script-less, scripted, step, view, stepview

Method Swipe

Performs Swipe operation in a view from start position (X,Y) to end position (X,Y)

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function Swipe( 
        Integer StartX,
        Integer StartY,
        Integer EndX,
        Integer EndY,
        Integer MsSpeed [Optional],
        Integer MsHoldBeforeSwiping [Optional],
        Boolean Report [Optional]
)

Step

ScrollTo

100

100

500

500

1500

100

true

StartX

StartY

EndX

EndY

MsSpeed

Boolean MsHoldBeforeSwiping [Optional]

Report

Parameters

StartX

Type: Integer

X of the start point

StartY

Type: Integer

Y of the start point

EndX

Type: Integer

X of the end point

EndY

Type: Integer

Y of the end point

MsSpeed (optional)

Type: Integer

Default value: 1500

How long should it take to swipe (in milliseconds)

MsHoldBeforeSwiping (optional)

Type: Integer

Default value: 100

Hold mouse at starting position before swiping (in milliseconds)

Report (optional)

Type: Boolean

Default value: True

Report this step to Test Results

Returns

No return value

Example

VBScript

Application("Demo").Swipe 100, 100, 500, 500
'Set swipe speed
Application("Demo").Swipe 100, 100, 500, 500, 1000
'Set hold parameter before swiping
Application("Demo").Swipe 100, 100, 500, 500, 1000, 500
'Exclude this step from report
Application("Demo").Swipe 100, 100, 500, 500, 1000, 500, false

JavaScript

Application("Demo").Swipe(100, 100, 500, 500);
// Set swipe speed
Application("Demo").Swipe(100, 100, 500, 500, 1000);
// Set hold parameter before swiping
Application("Demo").Swipe(100, 100, 500, 500, 1000, 500);
// Exclude this step from report
Application("Demo").Swipe(100, 100, 500, 500, 1000, 500, false);

Step

Swipe

100

100

500

500

Comment

Set speed, hold before swipe and report parameters

Step

Swipe

100

100

500

500

1000

500

true

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227