private string GetXpathId(HtmlElement ele) { string id = ele.GetAttribute("id"); if (String.IsNullOrEmpty(id) == false) { HtmlElement tmpEle = ele.Document.GetElementById(id); if (ele.Equals(tmpEle)) return id; } return null; }
private string GetXpathId(HtmlElement ele) { string id = ele.GetAttribute("id"); if (String.IsNullOrEmpty(id) == false) { HtmlElement tmpEle = ele.Document.GetElementById(id); if (ele.Equals(tmpEle)) return id; } return null; }