Skip to content Skip to sidebar Skip to footer

Appium, How To Get X And Y Coordinates For Swiping

In the Appium documentation, it says that i have to pass in an x and y value. How can I know the x and y value of a section i want to to swipe left or right on. I am using uiautoma

Solution 1:

You don't need any tools for getting the x, y values.

Just enable this option in your Android device / Emulator:

Settings > Developer options > Enable 'Pointer location'

After enabling this once you tap on screen -> x, y locator values will be displayed in top bar.

Enable Pointer Location: Pointer location

x, y values: x, y values

Post a Comment for "Appium, How To Get X And Y Coordinates For Swiping"