cancel
Showing results for 
Search instead for 
Did you mean: 

Using OCR checkpoint in IF then condition

SOLVED
Highlighted
Occasional Visitor

Using OCR checkpoint in IF then condition

Hi,

 

I am trying to use OCR object in an if then loop but it doesn't let me select the required text to verify. Please suggest any alternative available.

Also When self healing is enabled in test complete and if then conditions are used in keyword test the test complete starts self healing when object is not found even when it should skip the loop .

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

@bhanu766 Could you please clarify what you mean by saying "it doesn’t let me select the required text to verify"? What exactly do you want to do? What is the difference between the actual and expected results?

 

About the Self Healing mode: if I understand correctly, the behavior you described is the correct behavior. This mode is created to automatically fix recognition errors (e.g. "object doesn't exist"). Here is the quote from our documentation (https://support.smartbear.com/testcomplete/docs/testing-with/running/self-healing-tests.html
"When the mode is active and the test engine fails to find an object, it tries to find a similar object in the system."
If the "object doesn't exist" error is part of your test, and you don't need to fix this recognition error, we suggest that you disable the Self Healing mode.


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

2 REPLIES 2
Highlighted
Community Manager

Thank you for posting your questions.

 

Anyone working with OCR, Community?🙂

 

@BenoitB @NisHera @AlexKaras @m_essaid 


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
Community Manager

@bhanu766 Could you please clarify what you mean by saying "it doesn’t let me select the required text to verify"? What exactly do you want to do? What is the difference between the actual and expected results?

 

About the Self Healing mode: if I understand correctly, the behavior you described is the correct behavior. This mode is created to automatically fix recognition errors (e.g. "object doesn't exist"). Here is the quote from our documentation (https://support.smartbear.com/testcomplete/docs/testing-with/running/self-healing-tests.html
"When the mode is active and the test engine fails to find an object, it tries to find a similar object in the system."
If the "object doesn't exist" error is part of your test, and you don't need to fix this recognition error, we suggest that you disable the Self Healing mode.


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors