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

@@ -15,7 +15,9 @@ func TestDriverExt_GesturePassword(t *testing.T) {
password[i], _ = strconv.Atoi(split[i])
}
driverExt, err := InitWDAClient(nil)
device, err := NewIOSDevice()
checkErr(t, err)
driverExt, err := device.InitWDAClient()
checkErr(t, err)
pathSearch := "/Users/hero/Documents/temp/2020-05/opencv/IMG_5.png"