Refine area to solve OCR.Recognize found 2 object
For one of my tests I need to select the right week in an agenda object.
While reading the docs https://support.smartbear.com/testcomplete/docs/reference/program-objects/ocrtextdocument/blockbytext.html
You can set different SelectionPreferences to make sure you select the right object.
Is there anyway to combine 2 SelectionPreferences?
in my case I want it to select the spLeftmost and spTopmost.
When clicking Weeknumber 27 I get this warning in the logs
"2 blocks were found by the text '27'. The first block was returned"
The test still passes, but it gives a warning in the logs.
Hello,
Unfortunately, this is not possible to do. Given an object, the OCR actions are only able to take in one selection preference.
Feel free to add this as a feature request for future considerations! Link to make the request is below:
https://community.smartbear.com/category/testcomplete_forum/ideas/testxcompletefeaturerequests