Forum Discussion
Hi,
OCR Will look at the text of an onscreen object. What object you select is up to you. You could have OCR across the page level or at a parent object level too.
OCR does require the text to be displayed on screen. So as long as the text is visible, OCR should be a good work around while we figure out the issue with the menu
- Ryu3 years agoContributor
OCR is also not seeing the text, even when looking at the entire application window. The text is visible to the user, too, so I don't know why OCR doesn't "see" it.
- mattb3 years agoStaff
Hi,
Does the submenu disappear when not hovering over it? Or when clicking off of it?
We don't necessarily have to use OCR yet either. I would try to enable the top asterisk in the MSAA settings here: https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/open-apps/...
Then restart the application under test and see if you can spy the object.
If that doesn't work, I would try combinations of UIA, MSAA and text regonition: https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/open-apps/... Enable an asterisk under the extended support tab. You will have to click add to add a field for the asterisk and enable it.
I would try combinations of 2 of UIA, MSAA, and Text Rec, combinations of 3 can cause overlap. If these settings do not work I would also recommend turning them off as they do expose more properties, it will probably be unnecessary and cause slowdowns.
By using these enhancements, it should provide more properties for TestComplete to map the sub menu, therefore more robust object recognition.- Ryu3 years agoContributor
mattb it does not disappear when removing focus unless either there is a mouse click elsewhere or the mouse hover moves to another menu. I can "spy" the submenu with Object Spy, but it OS says that it is still application.TTBPopUpWindow, which is the same mapping of the main File menu. During recording and name mapping, it always maps those two menu trees the same way. During run, TC only sees the main File Menu, even after opening the submenu. I assume the disconnect is happening because TC is seeing two of the same object and therefore is only looking at the first one it encounters. I'll try the other suggestion you made and get back to you.
Related Content
- 13 years ago
Recent Discussions
- 2 days ago