mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-01 19:47:11 +08:00
fix ADBDriver
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user