Forum Discussion
tristaanogre
Esteemed Contributor
Inside the loop, add Try/Catch/Finally logic. Make sure you include, in your code in the "Try" section, sufficient handling to accommodate any object identification problems so as to "catch" those errors and move to the next iteration of the loop.
Lagencie
6 years agoFrequent Contributor
Had some days now trying to figure out how this could work ... But TestComplete's Try Catch Block doesnt work this way.
It doesn't catch Object Recognition errors.
I have a small keyword test that opens a browser clicks a few elements and checks a table if those elements appear. If object.VisibleOnScreen not appearing, I make a Log Message - Error. But it doesnt jump into the catch block which is declared with Error Code.
This way there is no way to jump to the end and start the new test
Related Content
Recent Discussions
- 9 hours agoashly