refactor: DriverSession

This commit is contained in:
lilong.129
2025-02-17 17:08:24 +08:00
parent c8d776009c
commit 29c0e1cbef
16 changed files with 377 additions and 396 deletions

View File

@@ -68,12 +68,12 @@ var (
iosDriverExt *XTDriver
)
func init() {
iosDevice, _ = NewIOSDevice()
driver, _ := iosDevice.NewDriver()
iosDriverExt = NewXTDriver(driver,
ai.WithCVService(ai.CVServiceTypeVEDEM))
}
// func init() {
// iosDevice, _ = NewIOSDevice()
// driver, _ := iosDevice.NewDriver()
// iosDriverExt = NewXTDriver(driver,
// ai.WithCVService(ai.CVServiceTypeVEDEM))
// }
func TestDriverExt_TapXY(t *testing.T) {
err := iosDriverExt.TapXY(0.4, 0.5)