fix: add option match_one for FindTexts method

This commit is contained in:
buyuxiang
2023-08-26 00:17:06 +08:00
parent 8f7da0f2ac
commit 9ea2b9bf00
3 changed files with 43 additions and 6 deletions
+1
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