fix: ResetHomeOnStartup

This commit is contained in:
debugtalk
2022-10-11 21:28:08 +08:00
parent de7b2f566b
commit 5bfd3fd986
2 changed files with 9 additions and 6 deletions

View File

@@ -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")