API 工具使用
1. 点击:
- 通过位置点击标题
TouchActiontouchAction=newTouchAction(driver);
(1).单击
newTouchAction(driver).tap(PointOption.point(510,1040)).perform().release();
(2).点击多次
touchAction.tap(TapOptions.tapOptions()
.withTapsCount(2)
.withPosition(PointOption.point(852,1992)))
.perform().release();
2. 通过文字获取元素
driver.findElementByAndroidUIAutomator("new UiSelector().text(\"文字\")");