Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to swipe in Appium ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 709
    Comment on it

    Swipe is one of the basic functionality in any mobile application and in order to automate the mobile application the swipe functionality should be successfully implemented.

    Appium has a wide range of libraries and a method to swipe the screen is also present in its library.


    swipeScreen(startX, startY, endX, endY, duration)


    startX: This is the starting X axis in pixel ie the location from we want to initiate the swipe functionality.
    startY: This is the starting Y axis in pixel ie the location from we want to initiate the swipe functionality.
    endX: This is the ending X axis in pixel ie the location from we want to end the swipe functionality.
    endY: This is the ending Y axis in pixel ie the location from we want to end the swipe functionality.
    duration: The amount of time in millisecond to hold the screen while performing the swipe functionality.

    If we have to swipe from top to bottom then the value of Y axis remains same and only the value of X axis will change.

    If we have to swipe from left to right then the value of X axis remains same and only the value of Y axis will change.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: