Beispiel #1
0
        public IList <ICell> CellsMatch(string regex, Row row)
        {
            var columnLine = Row(row);

            return(columnLine.Where(v => v.Value.Value.Matches(regex)).Select(v => v.Value).ToList());
        }
Beispiel #2
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 #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
 private Dictionary <string, ICell> Row(Row row)
 {
     return(row.Get(Row, Row));
 }
Beispiel #6
0
        public Dictionary <string, ICell> Column(string value, Row row)
        {
            var columnCell = Cell(value, row);

            return(columnCell != null?Columns.GetColumn(columnCell.ColumnNum) : null);
        }