mgy333
12 years agoContributor
Surpressing warnings?
I use TestComplete 9.1.
TestComplete automatically places a warning in log whenever a script tries to click on a disabled control. It didn't do that on previous versions.
Is there any way to surpress this warning?
TestComplete automatically places a warning in log whenever a script tries to click on a disabled control. It didn't do that on previous versions.
Is there any way to surpress this warning?
That's up to you to determine. Do you want to suppress all warnings? Then simply add the code to the event handler to set the LogParams.Locked property to "true".
If you want to only suppress SOME warnings, then typically the content of LogParams.Str will contain some keywords or text that you will use as indicator that THIS message you want to lock while other messages you don't. That's what the example at https://support.smartbear.com/testcomplete/docs/testing-with/advanced/handling-events/creating-handlers/typical-tasks.html#blocking-log-messages Attempts to describe.