diff --git a/hrp/pkg/uixt/service_vedem.go b/hrp/pkg/uixt/service_vedem.go index 716f33e9..c5f45395 100644 --- a/hrp/pkg/uixt/service_vedem.go +++ b/hrp/pkg/uixt/service_vedem.go @@ -134,6 +134,11 @@ func (t OCRTexts) FindText(text string, options ...ActionOption) (result OCRText } results = append(results, ocrText) + + // return the first one matched exactly when index not specified + if ocrText.Text == text && actionOptions.Index == 0 { + return ocrText, nil + } } if len(results) == 0 {