fix: add option match_one for FindTexts method

This commit is contained in:
buyuxiang
2023-08-25 22:06:52 +08:00
parent 8f7da0f2ac
commit 9ea2b9bf00
3 changed files with 43 additions and 6 deletions

View File

@@ -132,6 +132,7 @@ func (dExt *DriverExt) swipeToTapTexts(texts []string, options ...ActionOption)
return errors.New("no text to tap")
}
options = append(options, WithMatchOne(true))
var point PointF
findTexts := func(d *DriverExt) error {
var err error