Forum Discussion
YMinaev
Staff
14 years agoHi,
On Error Resume Next allows you to catch VBScript exceptions. If you get errors like 'object not found' or similar, these are not exceptions and they don't affect error count. Such errors are not related to VBScript's engine, they are just 'logical' errors TC posts to the log.
To check whether your script was able to obtain the target object correctly, wait for this object and check the result's Exists property value.
On Error Resume Next allows you to catch VBScript exceptions. If you get errors like 'object not found' or similar, these are not exceptions and they don't affect error count. Such errors are not related to VBScript's engine, they are just 'logical' errors TC posts to the log.
To check whether your script was able to obtain the target object correctly, wait for this object and check the result's Exists property value.