Is there a way to use UFT to get text that’s in an image?

Category:
Question ID: 109787
1
0

We have a page on our website that will display an image based on what the user selects. The image itself is the same, but the text on it will change. Is there a way to verify that the correct image is displayed using UFT by checking the text?

Marked as spam
Posted by (Questions: 338, Answers: 20)
Asked on August 13, 2020 2:50 pm
12 views
Answers (1)
1
Private answer

I'd try using the new feature in UFT 15.0.1,
"Use the new TextUtil.GetTextFromImage and TextUtil.GetTextLocationFromImage to retrieve or locate text in an image. Supported image file types: BMP, GIF, JPEG, PNG, and TIFF."

Check out more information on this feature at this link.

Marked as spam
Posted by (Questions: 16, Answers: 748)
Answered on August 13, 2020 2:50 pm
That works really well for what we need to do!
( at August 13, 2020 2:51 pm)