I am getting the below error when I try and find an element. My find method below.
public Element FindMenuItem(string menuItemName)
{
var menuItem = Element(Find.ByText(menuItemName));
var cells = ((ElementContainer<Element>)(menuItem)).TableCells;
return cells.Count > 0 ? cells.First() : menuItem;
}
The error:
WatiN.Core.Exceptions.WatiNException: It's not possible to find the element because no element finder is available.
This is a known bug with Watin, get the latest build and it should be fixed. Link to bug below.