fix: android by selector

This commit is contained in:
debugtalk
2022-10-25 17:34:52 +08:00
parent 7f4c3ae248
commit aa966123bc
6 changed files with 12 additions and 41 deletions

View File

@@ -868,8 +868,7 @@ func TestDriver_AppLaunch(t *testing.T) {
t.Fatal(err)
}
// err = driver.AppLaunch("tv.danmaku.bili", BySelector{ResourceIdID: "tv.danmaku.bili:id/action_bar_root"})
err = driver.AppLaunch("com.android.settings", AppLaunchOption{}.WithAndroidBySelector(AndroidBySelector{ResourceIdID: "android:id/list"}))
err = driver.AppLaunch("com.android.settings")
if err != nil {
t.Fatal(err)
}