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

@@ -64,7 +64,7 @@ func (dExt *XTDriver) AutoPopupHandler() error {
// TODO: check popup by activity type
// check popup by screenshot
screenResult, err := dExt.GetScreenResult(
texts, err := dExt.GetScreenTexts(
option.WithScreenShotOCR(true),
option.WithScreenShotUpload(true),
option.WithScreenShotFileName("check_popup"),
@@ -73,7 +73,7 @@ func (dExt *XTDriver) AutoPopupHandler() error {
return errors.Wrap(err, "get screen result failed for popup handler")
}
return dExt.handleTextPopup(screenResult.Texts)
return dExt.handleTextPopup(texts)
}
type PopupInfo struct {