How to check if element isn't shown?
Posted: Wed Jun 01, 2011 6:03 pm
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
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