feat: run Android UI automation with adb by default, add uixt.WithUIA2(true) option to use uiautomator2

This commit is contained in:
debugtalk
2022-12-26 21:57:47 +08:00
parent e26f79e326
commit 64f1a28605
11 changed files with 424 additions and 244 deletions
+2 -2
View File
@@ -24,12 +24,12 @@ func checkOCR(buff *bytes.Buffer) error {
func TestOCRWithScreenshot(t *testing.T) {
device, _ := NewAndroidDevice()
driver, err := device.NewUSBDriver(nil)
driver, err := device.NewDriver(nil)
if err != nil {
t.Fatal(err)
}
raw, err := driver.Screenshot()
raw, err := driver.Driver.Screenshot()
if err != nil {
t.Fatal(err)
}