Exemplo n.º 1
0
 /// <summary>
 /// Finds te first row that matches <paramref name="predicate"/> in <paramref name="inColumn"/>
 /// defined as a TD html element. If no match is found, <c>null</c> is returned.  This method will look for rows in all
 /// <see cref="Core.TableBody"/> elements but will ignore rows in nested tables.
 /// </summary>
 /// <param name="predicate">The predicate that the cell text must match.</param>
 /// <param name="inColumn">Index of the column to find the text in.</param>
 /// <returns>The searched for <see cref="TableRow"/>; otherwise <c>null</c>.</returns>
 public virtual TableRow FindRowInOwnTableRows(Predicate <TableCell> predicate, int inColumn)
 {
     return(FindInOwnTableRows(Find.ByExistenceOfRelatedElement <TableRow>(row => row.OwnTableCell(Find.ByIndex(inColumn) & Find.ByElement(predicate)))));
 }