Esempio n. 1
0
        private void DoSkipColumns()
        {
            int row = HtmlTable.GetRowIndex(mySelectedElement);

            Func <int, IHtmlElement> GetCellAt = col => myTable.GetCellAt(row, col);

            SkipElements(mySkipColumns, GetCellAt);
        }
Esempio n. 2
0
        public void GetIndices()
        {
            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);

            Assert.AreEqual(1, HtmlTable.GetColumnIndex(e));
            Assert.AreEqual(6, HtmlTable.GetRowIndex(e));
            Assert.AreEqual(e, HtmlTable.GetEmbeddingTD(e));
            Assert.AreEqual(e.Parent, HtmlTable.GetEmbeddingTR(e));
        }
Esempio n. 3
0
 private Func <IHtmlElement, IHtmlElement> FindRowHeader(int pos)
 {
     return(e => myTable.GetCellAt(HtmlTable.GetRowIndex(e), pos));
 }