change: disable auto popup handler when swipe to find text

This commit is contained in:
lilong.129
2024-12-26 22:56:45 +08:00
parent 1dc74121e6
commit 2d8999148e
2 changed files with 1 additions and 5 deletions

View File

@@ -162,10 +162,6 @@ func (dExt *DriverExt) swipeToTapTexts(texts []string, options ...ActionOption)
dExt.ParseActionOptions(optionsWithoutIdentifier...)...)
if err != nil {
log.Error().Err(err).Strs("texts", texts).Msg("find texts failed")
// target texts not found, try to auto handle popup
if e := dExt.ClosePopupsHandler(); e != nil {
log.Error().Err(e).Msg("run popup handler failed")
}
return err
}
log.Info().Strs("texts", texts).Interface("results", points).Msg("swipeToTapTexts successful")