I have situation where I need to check if element isn't found.
It comes to my mind to Search for this element and catch TimeOutException
try
{
FindSingle(element, timeout);
}
catch
{
// element isn't there
}
So is this only way or is there some better way to do this?
regards,
Vladimir Vajda
How to check if element isn't shown?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to check if element isn't shown?
Hello Vladimir,
there is
Regards,
Roland
Ranorex Support Team
there is
validate.NotExists()which internally does exactly that.
Regards,
Roland
Ranorex Support Team
Re: How to check if element isn't shown?
Thanks, Roland.
Regards,
Vladimir Vajda
Regards,
Vladimir Vajda