fix: compatible with swipe params

This commit is contained in:
buyuxiang
2023-10-08 17:22:03 +08:00
committed by buyuxiang
parent c1f7452ea1
commit 3613ffb2c0
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -380,6 +380,9 @@ func convertCompatMobileStep(mobileStep *MobileStep) {
if ma.Method == uixt.ACTION_SwipeToTapText && actionOptions.MaxRetryTimes == 0 {
ma.ActionOptions.MaxRetryTimes = 10
}
if ma.Method == uixt.ACTION_Swipe {
ma.ActionOptions.Direction = ma.Params
}
mobileStep.Actions[i] = ma
}
}