From d47931d80100bac22ccb64610e1b7a7835751955 Mon Sep 17 00:00:00 2001 From: "lilong.129" Date: Tue, 24 Dec 2024 15:47:40 +0800 Subject: [PATCH] change: run mobile ui actions --- hrp/internal/version/VERSION | 2 +- hrp/step_mobile_ui.go | 15 +-------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/hrp/internal/version/VERSION b/hrp/internal/version/VERSION index 0d9f6f29..0a205146 100644 --- a/hrp/internal/version/VERSION +++ b/hrp/internal/version/VERSION @@ -1 +1 @@ -v5.0.0+2412241212 +v5.0.0+2412241547 diff --git a/hrp/step_mobile_ui.go b/hrp/step_mobile_ui.go index c952e9f3..7303c8c7 100644 --- a/hrp/step_mobile_ui.go +++ b/hrp/step_mobile_ui.go @@ -718,21 +718,8 @@ func runStepMobileUI(s *SessionRunner, step IStep) (stepResult *StepResult, err stepResult.Elapsed = time.Since(start).Milliseconds() }() - // prepare actions - var actions []uixt.MobileAction - if mobileStep.Actions == nil { - actions = []uixt.MobileAction{ - { - Method: mobileStep.Method, - Params: mobileStep.Params, - }, - } - } else { - actions = mobileStep.Actions - } - // run actions - for _, action := range actions { + for _, action := range mobileStep.Actions { select { case <-s.caseRunner.hrpRunner.caseTimeoutTimer.C: log.Warn().Msg("timeout in mobile UI runner")