fix ADBDriver

This commit is contained in:
lilong.129
2025-02-10 21:58:32 +08:00
parent 08b40fe7c6
commit 3d67bfba62
4 changed files with 17 additions and 15 deletions

View File

@@ -29,14 +29,14 @@ func NewUIA2Driver(device *AndroidDevice) (*UIA2Driver, error) {
}
driver := &UIA2Driver{
ADBDriver: &ADBDriver{
AndroidDevice: device,
Device: device,
},
}
err = driver.Session.InitConnection(localPort)
if err != nil {
return nil, err
}
driver.Logcat = device.Logcat
driver.Device.Logcat = device.Logcat
err = driver.InitSession(nil)
if err != nil {