/// <summary> /// For NUnitAsp's test suite only. /// </summary> public static HtmlTagTester TestInstance(string htmlPage, string xpath) { HtmlTagTester instance = new HtmlTagTester(); instance.pageForTestingOnly = new XmlDocument(); instance.pageForTestingOnly.LoadXml(htmlPage); instance.xpath = xpath; instance.description = htmlPage; return(instance); }
/// <summary> /// For NUnitAsp's test suite only. /// </summary> public static HtmlTagTester TestInstance(string htmlPage, string id, string description) { HtmlTagTester instance = new HtmlTagTester(); instance.pageForTestingOnly = new XmlDocument(); instance.pageForTestingOnly.LoadXml(htmlPage); instance.idForTestingOnly = id; instance.description = description; return(instance); }
private HtmlTagTester[] ChildrenByXPath(string xpath, string description) { XmlNodeList children = Element.SelectNodes(xpath); HtmlTagTester[] result = new HtmlTagTester[children.Count]; for (int i = 0; i < children.Count; i++) { result[i] = new HtmlTagTester((XmlElement)children[i], description + " #" + i + " of " + Description); } return(result); }
private HtmlTagTester[] ChildrenByXPath(string xpath, string description) { XmlNodeList children = Element.SelectNodes(xpath); HtmlTagTester[] result = new HtmlTagTester[children.Count]; for (int i = 0; i < children.Count; i++) { result[i] = new HtmlTagTester((XmlElement)children[i], description + " #" + i + " of " + Description); } return result; }
/// <summary> /// For NUnitAsp's test suite only. /// </summary> public static HtmlTagTester TestInstance(string htmlPage, string xpath) { HtmlTagTester instance = new HtmlTagTester(); instance.pageForTestingOnly = new XmlDocument(); instance.pageForTestingOnly.LoadXml(htmlPage); instance.xpath = xpath; instance.description = htmlPage; return instance; }
/// <summary> /// For NUnitAsp's test suite only. /// </summary> public static HtmlTagTester TestInstance(string htmlPage, string id, string description) { HtmlTagTester instance = new HtmlTagTester(); instance.pageForTestingOnly = new XmlDocument(); instance.pageForTestingOnly.LoadXml(htmlPage); instance.idForTestingOnly = id; instance.description = description; return instance; }