Akil
Akil

Reputation: 75

How to track touch actions on screen during test automation with Appium

I am using appium to run automated tests for a mobile app. the app is on both android and ios and my tests are written in ruby.

In my test code, I tap specific coordinates on the screen however I am not able to verify that the correct position was tapped if no action resulted from the tap.

What I would like is some kinda of visual cue so that I can tell where on the screen was tapped, pressed, swiped, etc. Is there any way to do with appium?

On android, in the settings under developer options I can select "show taps" which will temporarily display a circle where I tap on the screen but this doesn't seem to work while running tests. I'd like to know if there are any ways to do this on either android or ios. Any help would be appreciated.

Upvotes: 1

Views: 3038

Answers (1)

Al Imran
Al Imran

Reputation: 882

For Android you should enable Show touches and Pointer location too from developer option, It will show the pointer location of Click/Swipe/Tap. It's working fine for me during automation.

Upvotes: 3

Related Questions