Forum Discussion
dikshika114
Contributor
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.");
}
dikshika114
3 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
- 4 hours ago
- 6 days ago
- 10 days ago