private bool IsElementInContainer(WatiN.Core.Element element, IElementContainer container) { return(container.Children().Any(child => child.Equals(element))); }