feat: 新增ui2控件点击

This commit is contained in:
余泓铮
2024-04-25 19:57:08 +08:00
parent d7d6f76c93
commit dbc6c73863
4 changed files with 112 additions and 56 deletions

View File

@@ -132,6 +132,18 @@ func TestDriver_Source(t *testing.T) {
t.Log(source)
}
func TestDriver_TapByText(t *testing.T) {
driver, err := NewUIADriver(nil, uiaServerURL)
if err != nil {
t.Fatal(err)
}
err = driver.TapByText("安装")
if err != nil {
t.Fatal(err)
}
}
func TestDriver_BatteryInfo(t *testing.T) {
driver, err := NewUIADriver(nil, uiaServerURL)
if err != nil {