fix: iOS tap_xy scale adaption error

This commit is contained in:
buyuxiang
2023-08-24 20:10:46 +08:00
parent 244bf039e6
commit 249e30ad2d
5 changed files with 18 additions and 4 deletions

View File

@@ -161,7 +161,7 @@ func (dev *AndroidDevice) NewDriver(options ...DriverOption) (driverExt *DriverE
}
var driver WebDriver
if dev.UIA2 {
if dev.UIA2 || dev.LogOn {
driver, err = dev.NewUSBDriver(driverOptions.capabilities)
} else {
driver, err = dev.NewAdbDriver()