Forum Discussion
I guess the first question I have is why are you using OCR to find something to click on? Is there a reason why the Login item is not able to be recognized distinctly?
What you have described is one of the main problems with OCR... all it can do is recognize that there is text matching a particular string... it doesn't tell you anything about whether or not it is the CORRECT text you want for interaction. Perhaps if you can explain why you are using OCR, we might be able to come up with a better solution for you.
As it is... What does your AUT look like in TestComplete's object browser? What type of application is it? When using Object Spy (with OCR disabled), how do the Login items display?
Thanks for reply . "Login" is just an example. Actually, I have to select a specific name from MSflexgrid .I can't use click cell method in MS FlexGrid. So I tried to click with OCR and it works fine. But it doesn't work when there are more than one similar name
- tristaanogre7 years agoEsteemed Contributor
Ah, MSFlexGrid... yeah, we have to deal with those, too, in our application under test. Honestly, if you can find a nice, clean way to click on the contents of a cell within an MSFlexGrid, let us know. As it is, our testing requirements in this situation is not to test the buttons in the grid, but to test the workflow around the data and we have alternative options to interact with contents of the grid.
- adibrao7 years agoNew ContributorCan you give a example of how you interact with MSFlex grid cells ? Our AUT also requires testing workflow around its data ? Can you provide a sample snippet or something ?
- tristaanogre7 years agoEsteemed Contributor
The only interaction we have with the cells is to verify content using the TextMatrix. We don't actually do any clicking within the cells or interacting with any components of the cells. The application under test has other buttons around the grid that, when a row in the grid is highlighted, we can click a button to interact with the data in that row. So, I'm not sure our solution will help you with that as it is pretty much part of the application itself.
- AlexKaras7 years agoChampion Level 3
Hi,
As it was said by Robert, OCR just converts image to text.
Maybe Text Recognition feature appears to be more useful for you? http://support.smartbear.com/testcomplete/docs/testing-with/object-identification/improving/using-text-recognition/about.html
Related Content
- 8 years ago
- 6 years ago
Recent Discussions
- 9 hours ago