From 2c74f9b060de4ff8ddff4efd75eb7c115c04b580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E6=B3=93=E9=93=AE?= Date: Thu, 24 Jul 2025 14:54:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20swipe=20to=20tap=20app=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=BB=91=E5=8A=A8=E9=94=99=E8=AF=AF=E7=A0=81=E8=BF=94?= =?UTF-8?q?=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/version/VERSION | 2 +- uixt/driver_ext_swipe.go | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/internal/version/VERSION b/internal/version/VERSION index 1085f853..e5858edd 100644 --- a/internal/version/VERSION +++ b/internal/version/VERSION @@ -1 +1 @@ -v5.0.0-250723 +v5.0.0-250724 diff --git a/uixt/driver_ext_swipe.go b/uixt/driver_ext_swipe.go index 0fc3cb1f..f23f2fe1 100644 --- a/uixt/driver_ext_swipe.go +++ b/uixt/driver_ext_swipe.go @@ -162,7 +162,11 @@ func (dExt *XTDriver) SwipeToTapApp(appName string, opts ...option.ActionOption) // swipe to first screen for i := 0; i < 5; i++ { - dExt.Swipe(0.5, 0.5, 0.9, 0.5, optionsWithoutIdentifier...) + err := dExt.Swipe(0.5, 0.5, 0.9, 0.5, optionsWithoutIdentifier...) + if err != nil { + log.Error().Err(err).Msgf("swipe to tap app %s failed", appName) + return errors.Wrapf(err, "swipe to tap app %s failed", appName) + } time.Sleep(1 * time.Second) }