Hi,
I'm doing UI testing using Watin (Watir, for java folks). I need to check that an element is not present in the HTML. As of today, I do this as follows:
[FindBy(Id = "pnConfirmation")]
protected Div Confirmation;
public bool ConfirmationMessageDisplayed
{
get
{
try
{
return Confirmation.Text != "";
}
catch (ElementNotFoundException)
{
return false;
}
}
}
But this takes an awful lot of time. Is there a more effective way to do this?