change: convertToAbsoluteScope

This commit is contained in:
lilong.129
2025-02-11 22:30:50 +08:00
parent be95cecdfb
commit 43cb610c4c
6 changed files with 105 additions and 122 deletions

View File

@@ -113,8 +113,9 @@ func (dExt *XTDriver) swipeToTapTexts(texts []string, opts ...option.ActionOptio
if err != nil {
return err
}
points, err := screenResult.Texts.FindTexts(texts,
dExt.ParseActionOptions(optionsWithoutIdentifier...)...)
convertToAbsoluteScope(dExt.IDriver, optionsWithoutIdentifier...)...)
if err != nil {
log.Error().Err(err).Strs("texts", texts).Msg("find texts failed")
return err