appium-uiautomator2-server icon indicating copy to clipboard operation
appium-uiautomator2-server copied to clipboard

[Feature Request] Add in ways to utilize the non-device-bounded version of getAbsolutePosition

Open Kertic opened this issue 3 years ago • 2 comments

https://github.com/appium/appium-uiautomator2-server/blob/master/app/src/main/java/io/appium/uiautomator2/utils/PositionHelper.java

In this file, there is an option to check for the device bounds. However, there is no actual utilization of that ability. I'm requesting a method that would allow us to test tapping outside of perceived bounds of the device for exploration of edge (literally) cases such as tapping elements under decorations.

This would also function as a workaround for https://github.com/appium/appium/issues/8724

Kertic avatar Jul 15 '21 20:07 Kertic

Why don't we make this sensitive to a setting/capability?

jlipps avatar Jul 15 '21 20:07 jlipps

I assume W3C don't have this check. Nevertheless, there maybe was a reason to put it there. Have you tried if touch actions actually succeed if performed outside of UiDevice boundaries?

mykola-mokhnach avatar Jul 15 '21 20:07 mykola-mokhnach