Forum Discussion

chandrashekharp's avatar
chandrashekharp
New Contributor
15 years ago

If condition is fail then also it is showing error.

I have put an If condition for the following case:



Whenever I put a valid data in my dataGridViewTextBoxEditingControl then it do not show anything. For handling the application errors I have put if conditions for various objects exstence. But in case the object does not exists then TC is giving error in log that " Unable to find object".

1 Reply

  • Hi Chandra,


    As far as I understand, you need to check whether an object exists in your test to prevent TestComplete from showing the error message. If so, please see the "Checking Whether an Object Exists" help topic to learn how to do this.