Inheritance: ControlWrapperBase
 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;
 }
 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);
        }
		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;
		}