I am automating an application which is DRM protected so I won't be able to take screenshot in uiautomatorviewer. That's why I approached for tapping action (TouchAction class) with x,y co-ordinates.

Is there any way around that after tapping on that element I can get some attributes value, i.e. resource-id, class or anything else which can help me to make things dynamic and smooth for other resolution devices as well.

new TouchAction(driver).tap(x, y).waitAction(time).perform();

I have added TouchAction code for better clarification. I would really appreciate all kinds of help.

Please feel free to put comments in case my question is not crystal clear.

0 Answers