Example #1
0
 /// <summary>
 /// Finds te first row that matches <paramref name="comparer"/> 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="comparer">The comparer 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(Comparer <string> comparer, int inColumn)
 {
     Logger.LogAction((LogFunction log) => { log("Matching comparer'{0}' with text in column {1} of {2} '{3}', {4}", comparer, inColumn, GetType().Name, IdOrName, Description); });
     return(FindInOwnTableRows(Find.ByTextInColumn(comparer, inColumn)));
 }
Example #2
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 <string> predicate, int inColumn)
 {
     return(FindInOwnTableRows(Find.ByTextInColumn(predicate, inColumn)));
 }
Example #3
0
 /// <summary>
 /// Finds te first row that matches <paramref name="findTextRegex"/> 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="findTextRegex">The regular expression 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(Regex findTextRegex, int inColumn)
 {
     Logger.LogAction((LogFunction log) => { log("Matching regular expression'{0}' with text in column {1} of {2} '{3}', {4}", findTextRegex, inColumn, GetType().Name, Id, Description); });
     return(FindInOwnTableRows(Find.ByTextInColumn(findTextRegex, inColumn)));
 }
Example #4
0
 /// <summary>
 /// Finds te first row that has an exact match with <paramref name="findText"/> in <paramref name="inColumn"/>
 /// defined as a TD html element. If no match is found, null 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="findText">The text to find.</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(string findText, int inColumn)
 {
     Logger.LogAction((LogFunction log) => { log("Searching for '{0}' in column {1} of {2} '{3}', {4}", findText, inColumn, GetType().Name, IdOrName, Description); });
     return(FindInOwnTableRows(Find.ByTextInColumn(findText, inColumn)));
 }
Example #5
0
 /// <summary>
 /// Finds te first row that matches <paramref name="comparer"/> 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="comparer">The comparer 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(Comparer <string> comparer, int inColumn)
 {
     Logger.LogAction("Matching comparer'{0}' with text in column {1} of {2} '{3}'", comparer, inColumn, GetType().Name, Id);
     return(FindInOwnTableRows(Find.ByTextInColumn(comparer, inColumn)));
 }
Example #6
0
 /// <summary>
 /// Finds te first row that matches <paramref name="findTextRegex"/> 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 the
 /// first <see cref="Core.TableBody"/> including rows in nested tables.
 /// </summary>
 /// <param name="findTextRegex">The regular expression 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 FindRow(Regex findTextRegex, int inColumn)
 {
     Logger.LogAction("Matching regular expression'{0}' with text in column {1} of {2} '{3}'", findTextRegex, inColumn, GetType().Name, Id);
     return(FindInTableRows(Find.ByTextInColumn(findTextRegex, inColumn)));
 }
Example #7
0
 /// <summary>
 /// Finds te first row that has an exact match with <paramref name="findText"/> in <paramref name="inColumn"/>
 /// defined as a TD html element. If no match is found, null 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="findText">The text to find.</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(string findText, int inColumn)
 {
     Logger.LogAction("Searching for '" + findText + "' in column " + inColumn + " of " + GetType().Name + " '" + Id + "'");
     return(FindInOwnTableRows(Find.ByTextInColumn(findText, inColumn)));
 }