Forum Discussion
nimishbhuta
7 years agoFrequent Contributor
Hello All,
The lock and unlock events works only for the events which are an operation.For ex: click on the button, enter the value in the text box.
But I want to disable the default error generated by TestComplete after specific code line and then enable in the next line.
Regards,
Nimish
AlexKaras
Champion Level 2
7 years agoHi Nimish,
As it was already suggested:
Dim bLogState
bLogState = Log.Enabled
Log.Enabled = False
<specific code line>
Log.Enabled = bLogState
OnLogError event handler can also be used to block some specific error to be posted into test log.
However, I would recommend to figure out what is causing the error to be posted to the log and how test code can be changed so that the error is not generated at all.