refactor: close popup handler

This commit is contained in:
lilong.129
2023-09-22 14:15:55 +08:00
parent fa34cd9a8f
commit 27297da8d3
8 changed files with 90 additions and 93 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.ClosePopupsHandler(uixt.WithMaxRetryTimes(3), uixt.WithInterval(1)); err2 != nil {
if err2 := uiDriver.ClosePopupsHandler(); err2 != nil {
log.Error().Err(err2).Str("step", step.Name).Msg("handle popup failed on step finished")
}