I am doing some automatic tests of an application, I use uiautomatorviewer but it does not locate the arrow button to go backwards. I want to click with some coordinates, but depending on the device, these coordinates vary.
My idea was to put the axis and to the end of the screen and then subtract some pixels and the X axis to the right side. How could I put the end of the screen in this method:
public void tapCoordenada(int x, int y) {
TouchAction touchAction = new TouchAction(getDriver());
touchAction.tap(new PointOption().withCoordinates(x, y)).perform();
}