From 8e3608797beb34add78828174d3d8c241cc839fd Mon Sep 17 00:00:00 2001 From: buyuxiang <347586493@qq.com> Date: Thu, 31 Aug 2023 13:10:30 +0800 Subject: [PATCH] set default max_retry_times for swipe_to_tap_text --- hrp/testcase.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hrp/testcase.go b/hrp/testcase.go index ee7f19b1..3640f6f5 100644 --- a/hrp/testcase.go +++ b/hrp/testcase.go @@ -376,6 +376,10 @@ func convertCompatMobileStep(mobileStep *MobileStep) { if ma.Method == uixt.ACTION_SwipeToTapTexts && actionOptions.MaxRetryTimes == 0 { ma.ActionOptions.MaxRetryTimes = 10 } + // set default max_retry_times to 10 for swipe_to_tap_text + if ma.Method == uixt.ACTION_SwipeToTapText && actionOptions.MaxRetryTimes == 0 { + ma.ActionOptions.MaxRetryTimes = 10 + } mobileStep.Actions[i] = ma } }