refactor: ClosePopupsHandler

This commit is contained in:
lilong.129
2023-09-21 22:43:17 +08:00
parent d1c30000a7
commit 4a96dea903
4 changed files with 18 additions and 25 deletions
+1 -1
View File
@@ -624,7 +624,7 @@ func runStepMobileUI(s *SessionRunner, step *TStep) (stepResult *StepResult, err
}
// automatic handling of pop-up windows on each step finished
if err2 := uiDriver.ClosePopups(); err2 != nil {
if err2 := uiDriver.ClosePopupsHandler(uixt.WithMaxRetryTimes(3), uixt.WithInterval(1)); err2 != nil {
log.Error().Err(err2).Str("step", step.Name).Msg("handle popup failed on step finished")
}