- Code: Select all
try
{
Validate.NotExists(Interface.Chicago.Instance.Client.Main.Self, "Comment.", false);
}
catch (RanorexException e)
{
Report.Error(e.ToString());
}
Ranorex throws Element.NotFoundException, which is catched in catch block, so there is no any validation fail message in log, but only exception.
Ranorex version is 3.0.0.11639.