From 2523be5880422ed95e6693e7375ef07d212916c8 Mon Sep 17 00:00:00 2001 From: "huangbin.beal" Date: Mon, 11 Aug 2025 21:37:46 +0800 Subject: [PATCH] fix: interval option for swipe to tap text --- internal/version/VERSION | 2 +- uixt/driver_ext_swipe.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/version/VERSION b/internal/version/VERSION index 77429189..333d36aa 100644 --- a/internal/version/VERSION +++ b/internal/version/VERSION @@ -1 +1 @@ -v5.0.0-250806 +v5.0.0-250811 diff --git a/uixt/driver_ext_swipe.go b/uixt/driver_ext_swipe.go index f23f2fe1..a8f167af 100644 --- a/uixt/driver_ext_swipe.go +++ b/uixt/driver_ext_swipe.go @@ -100,8 +100,7 @@ func (dExt *XTDriver) SwipeToTapTexts(texts []string, opts ...option.ActionOptio } log.Info().Strs("texts", texts).Msg("swipe to tap texts") - opts = append(opts, option.WithMatchOne(true), option.WithRegex(true), option.WithInterval(1)) - + opts = append([]option.ActionOption{option.WithMatchOne(true), option.WithRegex(true), option.WithInterval(1)}, opts...) // Remove identifier for swipe operations to avoid WDA/UIA2 logging actionOptions := option.NewActionOptions(opts...) actionOptions.Identifier = ""