Forum Discussion
AlexanderM
Staff
14 years agoHi Hoks,
'On Error Resume Next' handles only the VBScript engine exceptions, not errors that occur during a call to a method of a program object of TestComplete as it is in your case. To avoid posting the error, use the Compare method instead of Check. The Compare method lets you specify the type of the message posted to the test log (warning by default):
Call Regions.Compare("SummarySection_PrintDoc",objExpected.Picture(97, 369, 410, 80, False))