mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 07:52:13 +08:00
feat: init device driver with plugin option
This commit is contained in:
@@ -170,15 +170,10 @@ func (dev *AndroidDevice) NewDriver(options ...DriverOption) (driverExt *DriverE
|
||||
return nil, errors.Wrap(err, "failed to init UIA driver")
|
||||
}
|
||||
|
||||
driverExt, err = newDriverExt(dev, driver)
|
||||
driverExt, err = newDriverExt(dev, driver, driverOptions.plugin)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
err = driverExt.extendCV()
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(code.MobileUIDriverError,
|
||||
fmt.Sprintf("extend OpenCV failed: %v", err))
|
||||
}
|
||||
|
||||
if dev.LogOn {
|
||||
err = driverExt.Driver.StartCaptureLog("hrp_adb_log")
|
||||
|
||||
Reference in New Issue
Block a user