fix: add 1s interval for swipe to tap

This commit is contained in:
lilong.129
2025-07-23 21:18:50 +08:00
parent 4189ccebff
commit 9037c76878

View File

@@ -100,7 +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))
opts = append(opts, option.WithMatchOne(true), option.WithRegex(true), option.WithInterval(1))
// Remove identifier for swipe operations to avoid WDA/UIA2 logging
actionOptions := option.NewActionOptions(opts...)