/// <summary> /// Marks the complete row specified by the given table row or cell /// with the given color. /// </summary> public void MarkTableRow(HtmlElement start, Color color) { start.Require(x => start != null); HtmlTable.GetRow(myDocument.Create(start)) .OfType <HtmlElementAdapter>() .Foreach(e => MarkElement(e.Element, color)); }
public void GetRow() { HtmlPath path = HtmlPath.Parse("/BODY[0]/DIV[5]/DIV[0]/DIV[1]/TABLE[7]/TBODY[0]/TR[6]/TD[1]"); var e = myDocument.GetElementByPath(path); var row = HtmlTable.GetRow(e); Assert.AreEqual(7, row.Count()); Assert.AreEqual(e, row.ElementAt(1)); }