mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-10 17:43:00 +08:00
fix: 暂时取消LazySetup,易出现反复重试的问题
This commit is contained in:
@@ -32,9 +32,6 @@ const (
|
||||
)
|
||||
|
||||
func NewStubIOSDriver(dev *uixt.IOSDevice) (*StubIOSDriver, error) {
|
||||
// lazy setup WDA
|
||||
dev.Options.LazySetup = true
|
||||
|
||||
wdaDriver, err := uixt.NewWDADriver(dev)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -278,3 +275,8 @@ func (s *StubIOSDriver) ScreenShot(opts ...option.ActionOption) (*bytes.Buffer,
|
||||
}
|
||||
return s.WDADriver.ScreenShot()
|
||||
}
|
||||
|
||||
func (s *StubIOSDriver) AppLaunch(packageName string) error {
|
||||
_ = s.EnableDevtool(packageName, true)
|
||||
return s.WDADriver.AppLaunch(packageName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user