Swipe

The swipe keywords help you to swipe the screen to a specific direction on simulator or device.

Structure :

launchApp <parameter>

setValue <parameter>

swipeLeft

 

Action

Parameter

Example Usage

Action

Parameter

Example Usage

swipeDown

Mobile


To swipe the screen in downward direction using offset X% (mentioned in Parameter 1), offset Y% (mentioned in Parameter 2) & swipe down to distance(%) (mentioned in Parameter 3) from top left corner.

Param 1 : Offset X(%)
Param 2 : Offset Y(%)
Param 3 : Distance(%)

Example :

swipeDown : <Offset X(%) : 30> <Offset Y(%) : 60> <Distance(%) : 80>

Swipes the screen downwards with offset X(%) as 30, offset Y(%) as 60 and distance(%) as 80.

swipeLeft

Mobile


To swipe the screen towards left direction using offset X% (mentioned in Parameter 1), offset Y% (mentioned in Parameter 2) & swipe left to distance(%) (mentioned in Parameter 3) from top left corner.

Param 1 : Offset X(%)
Param 2 : Offset Y(%)
Param 3 : Distance(%)

Example :

swipeLeft : <Offset X(%) : 30> <Offset Y(%) : 60> <Distance(%) : 80>

Swipes the screen to left with offset X(%) as 30, offset Y(%) as 60 and distance(%) as 80.

swipeRight

Mobile


To swipe the screen towards right direction using offset X% (mentioned in Parameter 1), offset Y% (mentioned in Parameter 2) & swipe right to distance(%) (mentioned in Parameter 3) from top left corner.

Param 1 : Offset X(%)
Param 2 : Offset Y(%)
Param 3 : Distance(%)

Example :

swipeRight : <Offset X(%) : 30> <Offset Y(%) : 60> <Distance(%) : 80>

Swipes the screen to right with offset X(%) as 30, offset Y(%) as 60 and distance(%) as 80.

swipeUp

Mobile


To swipe the screen in upward direction using offset X% (mentioned in Parameter 1), offset Y% (mentioned in Parameter 2) & swipe up to distance(%) (mentioned in Parameter 3) from top left corner.

Param 1 : Offset X(%)
Param 2 : Offset Y(%)
Param 3 : Distance(%)

Example :

swipeUp : <Offset X(%) : 30> <Offset Y(%) : 60> <Distance(%) : 80>

Swipes the screen upwards with offset X(%) as 30, offset Y(%) as 60 and distance(%) as 80.

Â