Locates an element above the specified element. The element to look above for elements. A object for use in finding the elements. If is null.
(IWebElement element)
| 124 | /// <returns>A <see cref="RelativeBy"/> object for use in finding the elements.</returns> |
| 125 | /// <exception cref="ArgumentNullException">If <paramref name="element"/> is null.</exception> |
| 126 | public RelativeBy Above(IWebElement element) |
| 127 | { |
| 128 | if (element == null) |
| 129 | { |
| 130 | throw new ArgumentNullException(nameof(element), "Element relative to cannot be null"); |
| 131 | } |
| 132 | |
| 133 | return SimpleDirection("above", element); |
| 134 | } |
| 135 | |
| 136 | /// <summary> |
| 137 | /// Locates an element above the specified element. |
no outgoing calls