Ask a Question

Text Recognition is not working

hina
Contributor

Text Recognition is not working

I have the image below in the application I am using:

 

hina_0-1655219792808.png

 

When I try to click the links in the image by using the coordinates it works:

 

Sys["Process"]("AXISEL")["WinFormsObject"]("MainForm")["WinFormsObject"]("splitContainer1")["WinFormsObject"]("SplitterPanel", "", 1)["WinFormsObject"]("NavigationBar")["Click"](57, 128);

 

When I try to click the links in the image by using the Text Recognition, it doesn't work:

 

Sys["Process"]("AXISEL")["WinFormsObject"]("MainForm")["WinFormsObject"]("splitContainer1")["WinFormsObject"]("SplitterPanel", "", 1)["WinFormsObject"]("NavigationBar")["TextObject"]("Work Areas").Click();

 

I checked the object tree, there are no TextObjects in object tree:

 

hina_1-1655220081707.png

 

Another option to click the text in the image is to use OCR, but I don't have the license to use OCR. What can I do to click the text in the image?

Any help would be appreciated.

 

Thanks,

Hina

12 REPLIES 12
Marsha_R
Community Hero

Have you completed the Enabling Text Recognition for Your Application section listed here?

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/text-recognition/...


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

Yes I did enabled the Text Recognition.

Marsha_R
Community Hero

Did this part work before?  Does text recognition work for you in some other part of your test?


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

Hi Marsha, 

 

It's my first time using the Text Recognition and it's not working.

 

Thanks,

Hina

Marsha_R
Community Hero

Hi Hina - 

I understand that it's not working for you in this case, but I was asking in case this was an intermittent problem. Since we can't see what you're working on, we sometimes have to ask a lot of questions to figure out what's going on. Sorry about that. 😉

 

What version of TestComplete are you using?


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

I am using TestComplete 15.40.421

Marsha_R
Community Hero

Okay, let's see a screenshot of your settings here please

Marsha_R_0-1655226887333.png

 


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

Below is the screenshot of my settings:

 

hina_0-1655227592287.png

 

Marsha_R
Community Hero

Can you check with your devs about this requirement?

  • The Text Recognition subsystem only catches the text that is drawn —

    • by the window procedure when it processes the WM_PAINT or WM_PRINTCLIENT message;

    • by functions of the Direct2D library.

    Text Recognition cannot recognize objects whose text is drawn in any other way.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: