Forum Discussion
Hi dikshika114
You can do this using property checkpoints.
In the wizard you can change the condition from exists to doesnt exist
https://support.smartbear.com/testcomplete/docs/testing-with/checkpoints/property/about.html
Hope this helps
Vinnie
Hi. I am using JavaScript not Keyword script.
The code part is something like that: for my conditions but it's not working because it's returning error for "deleteLocationLink.Exists" because it delete location link doesn't exists. vinniew
if(equals(deleteLocationLink.Exists, false))
{
Log.Message("User did not have permissions to Delete this location.");
}
else
{
Log.Error("User don't have permissions to Delete this Location but he is able to do that.");
}
- dikshika1143 years agoContributor
Hi vinniew
Can you please give me a quick solution for that?
- Marsha_R3 years agoModerator
See the script example on this page. It's best to use a Wait for an object and then check Exists.
https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/checking-existence.html
Related Content
- 2 years ago
- 5 years ago
- 4 years ago
- 10 months ago
Recent Discussions
- 3 hours ago
- 6 days ago
- 10 days ago