private FindAttribute GetXPathFinder(IHTMLElement element) { FindAttribute Finder = Finder = new FindAttribute(); Finder.FindMethod = FindMethods.XPath; Finder.FindValue = XPathFinder.GetXPath(element); return(Finder); }
protected FindAttribute GetFinder(IHTMLElement element, FindMethods method) { FindAttribute finder = new FindAttribute(); finder.FindMethod = method; if (method == FindMethods.XPath) { finder.FindValue = XPathFinder.GetXPath(element); } else if (method == FindMethods.CssSelector) { finder = GetCssPathFinder(element); } else { finder.FindValue = ActiveElementAttribute(element, method.ToString()); } return(finder); }