Creates a new for finding elements with the specified tag name. A By object that will be used to find the initial element. A object to be used in finding the elements. If is null.
(By by)
| 56 | /// <returns>A <see cref="RelativeBy"/> object to be used in finding the elements.</returns> |
| 57 | /// <exception cref="ArgumentNullException">If <paramref name="by"/> is null.</exception> |
| 58 | public static RelativeBy WithLocator(By by) |
| 59 | { |
| 60 | return new RelativeBy(by); |
| 61 | } |
| 62 | |
| 63 | /// <summary> |
| 64 | /// Finds the first element matching the criteria. |
no outgoing calls