Merge branch 'bugfix/huangbin/option_interval' into 'master'

fix: interval option for swipe to tap text

See merge request iesqa/httprunner!150
This commit is contained in:
黄彬
2025-08-11 13:47:02 +00:00

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