Ask a Question

Is there any way to disable a specific warning?

Regular Contributor

Is there any way to disable a specific warning?

Hi Support,


There is one step in my test to perform a click on a disabled checkbox, and that is intentional. I know the checkbox is disabled, the step is to verify that disabled checkbox is not accessable, but TC returns me a warning "The action may be performed incorrectly, because the control is disabled.". Is there anyway to disable this specific warning or anyway to configure TC to accept this action as expected behaviour? I don't want to disable all the warining though, for any other warning I still need to know.


Thanks in advance!

Community Hero

Can you check the value of the "Enabled" property in the code?

This will be easier and (more correctly) to check the state of this object.

Regular Contributor

Hi @Wamboo , so there is no way to mimic a click on a disabled field?

Esteemed Contributor

Why would you want to?  If the field is marked disabled in the DOM, then the "Enabled" property of the object will indicate that and there's no need to actually execute a click.  This is what property checkpoints and such are for.


You can mimic the click... but TestComplete assumes that any attempt to interact with an object should result in a successful interaction... unsuccessful interactions will be logged as such.

Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Regular Contributor

OK, thanks @tristaanogre 

Champion Level 2

... and yes, you can filter-out this specific warning via handling the OnLogWarning event:


  /Alex [Community Champion]
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
Super Contributor

Given the goal " the step is to verify that disabled checkbox is not accessable" is checking the enabled property and ensuring it is false insufficient?

SmartBear Alumni (Retired)

Thank you everybody for your assistance!

@whuang, which solution did you decide to use? Please share it with us or mark one of the current replies as a solution.



Tanya Yatskovskaya
SmartBear Community and Education Manager

Hi @TanyaYatskovska , for a easy and quick solution, I had just removed the click action for now, I am busy with a project right now, haven't try other suggestions yet.

SmartBear Alumni (Retired)

Thanks for the update. Please let us know if you return to this question for a deeper investigation. 

Let me mark your reply as a temporary solution.

Tanya Yatskovskaya
SmartBear Community and Education Manager

Showing results for 
Search instead for 
Did you mean: