Check how much the screen position has changed appium Android

I'm running an Android test using appium, and during the test, I performed a sliding operation on the screen. How can I find out how many pixels have been moved relative to the original position?

resolvent:

You can get it through the uiautomator viewer. Start it and select an element. Look for coordinates / pixels in the upper right corner of the automatic viewer and keep hovering on the element from right to left (and vice versa). You can see that the coordinates are changing

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>