mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 16:01:27 +08:00
fix: ResetHomeOnStartup
This commit is contained in:
@@ -397,6 +397,9 @@ func (r *testCaseRunner) parseConfig() error {
|
||||
}
|
||||
iosDeviceConfig.UDID = udid.(string)
|
||||
}
|
||||
// switch to iOS springboard before init WDA session
|
||||
// avoid getting stuck when some super app is activate such as douyin or wexin
|
||||
iosDeviceConfig.ResetHomeOnStartup = true
|
||||
_, err := r.hrpRunner.initUIClient(iosDeviceConfig)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "init iOS WDA client failed")
|
||||
|
||||
Reference in New Issue
Block a user