public bool HasElement(Element element) { string selectorValue = element.htmlSelector.selectorValue; string selectorType = Convert.ToString(element.htmlSelector.selectBy); return(DomService.HasElement(selectorValue, selectorType)); }