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 |
---|---|---|
swipeDown
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(%) | Example :
Swipes the screen downwards with offset X(%) as 30, offset Y(%) as 60 and distance(%) as 80. |
swipeLeft
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(%) | Example :
Swipes the screen to left with offset X(%) as 30, offset Y(%) as 60 and distance(%) as 80. |
swipeRight
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(%) | Example :
Swipes the screen to right with offset X(%) as 30, offset Y(%) as 60 and distance(%) as 80. |
swipeUp
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(%) | Example :
Swipes the screen upwards with offset X(%) as 30, offset Y(%) as 60 and distance(%) as 80. |
Â