mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 15:37:35 +08:00
feat: init device driver with plugin option
This commit is contained in:
@@ -322,15 +322,11 @@ func (dev *IOSDevice) NewDriver(options ...DriverOption) (driverExt *DriverExt,
|
||||
}
|
||||
}
|
||||
|
||||
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))
|
||||
}
|
||||
|
||||
settings, err := driverExt.Driver.SetAppiumSettings(map[string]interface{}{
|
||||
"snapshotMaxDepth": dev.SnapshotMaxDepth,
|
||||
"acceptAlertButtonSelector": dev.AcceptAlertButtonSelector,
|
||||
|
||||
Reference in New Issue
Block a user