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 agoChampion Level 3
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
- 11 months agoIrinaManea
- 4 years agomehdisinger
- 6 months agonado
- 2 months agoStoplight
- 3 years agoprekar
Recent Discussions
- 2 hours agoSubhraDas
- 7 hours agoJacobjacob44