public TElement FindElement <TElement>(Constraint findBy) where TElement : Element { if (PopUpFrame != null) { return(PopUpFrame.ElementOfType <TElement>(findBy)); } return(IEInstance.ElementOfType <TElement>(findBy)); }