0

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 uiautomationviewer (Android), do I need any tools?

driver.swipe(start_x=75, start_y=500, end_x=75, end_y=0, duration=800)
edmamerto
  • 7,605
  • 11
  • 42
  • 66

1 Answers1

5

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

akvenk
  • 466
  • 3
  • 8