Beispiel #1
0
 public ICell Cell(string value, Row row)
 {
     var rowNum = row.HasName ? Rows.Headers.IndexOf(row.Name) + 1 : row.Num;
     return Rows.GetRow(rowNum).FirstOrDefault(pair => pair.Value.Value.Equals(value)).Value;
 }
Beispiel #2
0
 public IList<ICell> CellsMatch(string regex, Row row)
 {
     var columnLine = Row(row);
     return new List<ICell>(((Dictionary<string, ICell>)columnLine.Where(v => v.Key.Matches(regex))).Values);
 }
Beispiel #3
0
 public bool WaitValue(string value, Row row)
 {
     return Timer.Wait(() => Column(value, row) != null);
 }
Beispiel #4
0
 public ICell Cell(IWebElement webElement, Column column, Row row)
 {
     return AddCell(webElement,
         column.Get(name => Columns.Headers.IndexOf(name) + 1, num => num),
         row.Get(name => Rows.Headers.IndexOf(name) + 1, num => num),
         column.Get(name => name, num => ""),
         row.Get(name => name, num => ""));
 }
Beispiel #5
0
 public ICell Cell(Column column, Row row)
 {
     int colIndex = column.Get(GetColumnIndex, num => num + Columns.StartIndex - 1);
     int rowIndex = (int) row.Get(GetRowIndex, num => num + Rows.StartIndex - 1);
     return AddCell(colIndex, rowIndex,
         column.Get(name => Columns.Headers.IndexOf(name) + 1, num => num),
         row.Get(name => Rows.Headers.IndexOf(name) + 1, num => num),
         column.Get(name => name, num => ""),
         row.Get(name => name, num => ""));
 }
Beispiel #6
0
 private Dictionary<string, ICell> Row(Row row)
 {
     return row.Get(Row, Row);
 }
Beispiel #7
0
 public Dictionary<string, ICell> Column(string value, Row row)
 {
     var columnCell = Cell(value, row);
     return columnCell != null ? Columns.GetColumn(columnCell.ColumnNum) : null;
 }