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)

1 Answer 1

4

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.