fix: interval option for swipe to tap text

This commit is contained in:
huangbin.beal
2025-08-11 21:37:46 +08:00
parent 3060c5e5db
commit 2523be5880
2 changed files with 2 additions and 3 deletions

View File

@@ -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 = ""