Inheritance: RowColumn
示例#1
0
文件: Table.cs 项目: zgorcsos/JDI
        public IList <ICell> CellsMatch(string regex, Column column)
        {
            var columnLine = Column(column);

            return(columnLine.Where(v => v.Value.Value.Matches(regex)).Select(v => v.Value).ToList());
        }
示例#2
0
文件: Table.cs 项目: zgorcsos/JDI
        public ICell Cell(string value, Column column)
        {
            var colIndex = column.Get(name => Columns.Headers.IndexOf(name) + 1, num => num);

            return(Columns.GetColumn(colIndex).FirstOrDefault(pair => pair.Value.Value.Equals(value)).Value);
        }
示例#3
0
文件: Table.cs 项目: zgorcsos/JDI
 public bool WaitValue(string value, Column column)
 {
     return(Timer.Wait(() => Row(value, column) != null));
 }
示例#4
0
文件: Table.cs 项目: zgorcsos/JDI
 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 => "")));
 }
示例#5
0
文件: Table.cs 项目: zgorcsos/JDI
 private Dictionary <string, ICell> Column(Column column)
 {
     return(column.Get(Column, Column));
 }
示例#6
0
文件: Table.cs 项目: zgorcsos/JDI
        public Dictionary <string, ICell> Row(string value, Column column)
        {
            var rowCell = Cell(value, column);

            return(rowCell != null?Rows.GetRow(rowCell.RowNum) : null);
        }