【发布时间】:2018-01-10 01:35:07
【问题描述】:
我在 Appium/Python 中有:
//calculation max_height
//calculation of max_width
action = TouchAction(self.driver)
action.tap(None, max_width, max_height).release().perform()
我的目标是执行相同的操作,但在 Java 中使用 UIautomator 工具。我尝试了下一个脚本,但它不起作用。
UiObject appButton = new UiObject(new UiSelector());
appButton.click(int x, int y);
我的应用是在 Unity 中制作的,我没有任何定位器的可访问性,所以我必须在屏幕上使用 XY 位置。
有人解决这个问题吗? 谢谢。
【问题讨论】:
标签: java android ui-automation android-uiautomator