Пример #1
0
 public TableCellWrapper CellWithIndex(int index)
 {
     var cell = _tableRow.TableCell(Find.ByIndex(index));
     var tableCellWrapper = new TableCellWrapper(cell, String.Format("{0}, table cell with index {1}", HowFound, index));
     tableCellWrapper.Exists().ShouldBeTrue();
     return tableCellWrapper;
 }
Пример #2
0
 public TableCellWrapper CellWithIndex(int index)
 {
     var elements = Element.FindElements(By.TagName("td"));
     var cell = elements.Count > index ? elements[index] : null;
     var tableCellWrapper = new TableCellWrapper(cell, String.Format("{0}, table cell with index {1}", HowFound, index), Browser);
     tableCellWrapper.Exists().ShouldBeTrue();
     return tableCellWrapper;
 }
Пример #3
0
        public TableCellWrapper CellWithIndex(int index)
        {
            var cell             = _tableRow.TableCell(Find.ByIndex(index));
            var tableCellWrapper = new TableCellWrapper(cell, String.Format("{0}, table cell with index {1}", HowFound, index));

            tableCellWrapper.Exists().ShouldBeTrue();
            return(tableCellWrapper);
        }
Пример #4
0
		public TableCellWrapper CellWithIndex(int index)
		{
			var elements = Element.FindElements(By.TagName("td"));
			var cell = elements.Count > index ? elements[index] : null;
			var tableCellWrapper = new TableCellWrapper(cell, String.Format("{0}, table cell with index {1}", HowFound, index), Browser);
			tableCellWrapper.Exists().ShouldBeTrue();
			return tableCellWrapper;
		}