feat: add function call for XTDriver

This commit is contained in:
lilong.129
2025-05-10 09:50:00 +08:00
parent 9bafea53af
commit f6ad6c9eff
4 changed files with 20 additions and 6 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ func (dExt *XTDriver) TapByOCR(text string, opts ...option.ActionOption) error {
point = textRect.Center()
}
log.Info().Str("text", text).Interface("rawTextRect", textRect).
Interface("tapPoint", point).Msg("TapByOCR success")
Interface("tapPoint", point).Msg("TapByOCR")
return dExt.TapAbsXY(point.X, point.Y, opts...)
}
@@ -52,7 +52,7 @@ func (dExt *XTDriver) TapByCV(opts ...option.ActionOption) error {
point = uiResult.Center()
}
log.Info().Interface("rawUIResult", uiResult).
Interface("tapPoint", point).Msg("TapByCV success")
Interface("tapPoint", point).Msg("TapByCV")
return dExt.TapAbsXY(point.X, point.Y, opts...)
}