cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to disable a specific warning?

SOLVED
Highlighted
Frequent 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!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Contributor

Re: Is there any way to disable a specific warning?

Hi @TanyaGorbunova , 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.

View solution in original post

9 REPLIES 9
Highlighted
Community Leader

Re: Is there any way to disable a specific warning?

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.

Highlighted
Frequent Contributor

Re: Is there any way to disable a specific warning?

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

Highlighted
Community Hero

Re: Is there any way to disable a specific warning?

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
Highlighted
Frequent Contributor

Re: Is there any way to disable a specific warning?

OK, thanks @tristaanogre 

Highlighted
Community Hero

Re: Is there any way to disable a specific warning?

... and yes, you can filter-out this specific warning via handling the OnLogWarning event: https://support.smartbear.com/testcomplete/docs/testing-with/advanced/handling-events/creating-handl...

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Highlighted
Super Contributor

Re: Is there any way to disable a specific warning?

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?

Highlighted
Community Manager

Re: Is there any way to disable a specific warning?

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 Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
Frequent Contributor

Re: Is there any way to disable a specific warning?

Hi @TanyaGorbunova , 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.

View solution in original post

Highlighted
Community Manager

Re: Is there any way to disable a specific warning?

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 Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!
Top Kudoed Authors