I have in Appium/Python :
//calculation max_height
//calculation of max_width
action = TouchAction(self.driver)
action.tap(None, max_width, max_height).release().perform()
My goal is to perform same, but in Java using UIautomator tool. I have tried the next script, but it does not work.
UiObject appButton = new UiObject(new UiSelector());
appButton.click(int x, int y);
My app made in Unity and i do not have any locator's accessibility, so i have to use XY position on the screen.
Does anybody solve this issue? Thanks.