Using Text Recognition Technology with Qt objects
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using Text Recognition Technology with Qt objects
Hello,
I am trying to use the text recognition technology "Using Text Recognition Technology" (link below)
https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/text-recognition/...
However, in the above link, see under "Enabling Text Recognition for Your Application" > point#5. It says "It must be the class name returned by the WndClass property of the object, to which your window or control corresponds.". Does this mean that it will not work for Qt objects? The desktop application that I am testing is Qt based. Therefore when I select a window/dialog using object spy, it returns 'QtClassName' and not a 'WndClass'. Therefore, when I try to invoke the 'TextObject' method, it does not work. Is there still a way that I can use this feature in my case?
From object spy:
Full Name = Sys.Process("myApp").QtObject("MainFrame").QtObject("TopWidget").......QtObject("TreeView").QtObject("qt_scrollarea_viewport")
Thanks!
Solved! Go to Solution.
- Labels:
-
Scripting
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @sameerjade -
It would have to be a wndClass for this approach to work.
That being said we do have a new form of text recognition which could help in this case - please find more information on this Optical Character Recognition here: https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/ocr/about.html
Let me know if you have further questions.
Emma
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot, Emma!
Hi @sameerjade , please let the Community know if the suggested approach worked for you. Thank you!
Sonya Mihaljova
Community and Education Specialist
