fix: unpredefined tap_cv not found error

This commit is contained in:
buyuxiang
2023-10-20 12:03:11 +08:00
parent 79c91637db
commit c22dc0836c
2 changed files with 2 additions and 1 deletions

View File

@@ -537,7 +537,7 @@ func (u UIResultMap) FilterUIResults(uiTypes []string) (uiResults UIResults, err
return
}
}
err = errors.Errorf("UI types %v not detected", uiTypes)
err = errors.Wrap(code.CVResultNotFoundError, fmt.Sprintf("UI types %v not detected", uiTypes))
return
}

View File

@@ -371,6 +371,7 @@ func convertCompatMobileStep(mobileStep *MobileStep) {
if ma.Method == uixt.ACTION_TapByCV {
uiTypes, _ := builtin.ConvertToStringSlice(ma.Params)
ma.ActionOptions.ScreenShotWithUITypes = append(ma.ActionOptions.ScreenShotWithUITypes, uiTypes...)
ma.ActionOptions.ScreenShotWithUpload = true
}
// set default max_retry_times to 10 for swipe_to_tap_texts
if ma.Method == uixt.ACTION_SwipeToTapTexts && actionOptions.MaxRetryTimes == 0 {