feat: 兼容iproxy 2.1.0 新增步骤弹窗忽略和全局弹窗忽略

This commit is contained in:
余泓铮
2024-06-12 11:36:30 +08:00
parent 55bdfc49be
commit c670a4cef9
5 changed files with 18 additions and 3 deletions
+4 -2
View File
@@ -647,8 +647,10 @@ 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 {
log.Error().Err(err2).Str("step", step.Name).Msg("auto handle popup failed")
if !step.IgnorePopup && !s.IgnorePopup() {
if err2 := uiDriver.ClosePopups(); err2 != nil {
log.Error().Err(err2).Str("step", step.Name).Msg("auto handle popup failed")
}
}
// save attachments