refactor: init driver for device

This commit is contained in:
debugtalk
2022-10-11 18:01:49 +08:00
parent 12af06791d
commit 3683589b37
12 changed files with 178 additions and 158 deletions

View File

@@ -7,7 +7,9 @@ import (
)
func TestDriverExtOCR(t *testing.T) {
driverExt, err := InitWDAClient(nil)
device, err := NewIOSDevice()
checkErr(t, err)
driverExt, err := device.InitWDAClient()
checkErr(t, err)
x, y, width, height, err := driverExt.FindTextByOCR("抖音")