Is there any way to disable a specific warning?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
... 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...
/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.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
