How to work with swipe keywords

There are four swipe keywords made available.

  • swipeUp
  • swipeDown
  • swipeLeft
  • swipeRight

There are four different parameters used in each swipe keyword :

  1. X Offset : Used to provide x-axis of mobile screen
  2. Y Offset : Used to provide y-axis of mobile screen
  3. Distance : Use to provide the distance from where swipe will start
  4. Wait Time : Used to provide the wait time between touch and swipe that will maintain the speed of swipe
    Suppose you provide the wait time as 5 seconds, the speed of the swipe will be according to the time provided.
    The more the wait, the slower will be the swipe speed.

  1. swipeUp

    If you wish to swipeUp, the X Offset will remain constant and mainly the Y offset value will change. Considering top left corner to be (0,0), if you move down from the top left corner, the value of Y keeps increasing & if you move up, the value of Y keeps decreasing.So, in order to swipeUp, we are moving from a higher value of Y to a lower value of Y. The higher value of Y will be entered in Y offset parameter & the lower value of Y will be entered in the Distance parameter.Example :
    X offset (%) : 50 (The value should be the percentage of block or element present in screen where we want to scroll)
    Y offset (%) : 80
    Distance (%) : 10
    Wait Time (seconds) : 1 (Default value is 0.5 that is half second, we can provide any value starting from 0.1)


  2. swipeDown

    If you wish to swipeDown, the X Offset will remain constant and mainly the Y offset value will change. Considering top left corner to be (0,0), if you move down from the top left corner, the value of Y keeps increasing & if you move up, the value of Y keeps decreasing.So, in order to swipeDown, we are moving from a lower value of Y to a higher value of Y. The lower value of Y will be entered in Y offset parameter & the higher value of Y will be entered in the Distance parameter.Example :
    X offset (%) : The value should be the percentage of block or element present in screen where we want to scroll
    Y offset (%) : 10
    Distance (%) : 80
    Wait Time (seconds) : 1 (Default value is 0.5 that is half second, we can provide any value starting from 0.1)


  3. swipeLeft

    If you wish to swipeLeft, the Y Offset will remain constant and mainly the X offset value will change. Considering top left corner to be (0,0), if you move right from the top left corner, the value of X keeps increasing & if you move left, the value of Y keeps decreasing.So, in order to swipeLeft, we are moving from a higher value of X to a lower value of X. The higher value of X will be entered in X offset parameter & the lower value of X will be entered in the Distance parameter.Example :
    X offset (%) : 80
    Y offset (%) : The value should be the percentage of block or element present in screen where we want to scroll
    Distance (%) : 10
    Wait Time (seconds) : 1 (Default value is 0.5 that is half second, we can provide any value starting from 0.1)



  4. swipeRight

    If you wish to swipeRight, the Y Offset will remain constant and mainly the X offset value will change. Considering top left corner to be (0,0), if you move right from the top left corner, the value of X keeps increasing & if you move left, the value of Y keeps decreasing.So, in order to swipeRight, we are moving from a lower value of X to a higher value of X. The lower value of X will be entered in X offset parameter & the higher value of X will be entered in the Distance parameter.Example :
    X offset (%) : 10
    Y offset (%) : The value should be the percentage of block or element present in screen where we want to scroll
    Distance (%) : 80
    Wait Time (seconds) : 1 (Default value is 0.5 that is half second, we can provide any value starting from 0.1)