Exemple #1
0
        private void DoSkipRows()
        {
            int column = HtmlTable.GetColumnIndex(mySelectedElement);

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

            SkipElements(mySkipRows, GetCellAt);
        }
Exemple #2
0
        public void GetCellAt()
        {
            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);
            HtmlTable table = myDocument.GetTableByPath(path);

            Assert.AreEqual(e, table.GetCellAt(6, 1));
        }