Locates an element to the right of the specified element. The element to look to the right of for elements. A object for use in finding the elements. If is null.
(IWebElement element)
| 220 | /// <returns>A <see cref="RelativeBy"/> object for use in finding the elements.</returns> |
| 221 | /// <exception cref="ArgumentNullException">If <paramref name="element"/> is null.</exception> |
| 222 | public RelativeBy RightOf(IWebElement element) |
| 223 | { |
| 224 | if (element == null) |
| 225 | { |
| 226 | throw new ArgumentNullException(nameof(element), "Element relative to cannot be null"); |
| 227 | } |
| 228 | |
| 229 | return SimpleDirection("right", element); |
| 230 | } |
| 231 | |
| 232 | /// <summary> |
| 233 | /// Locates an element to the right of the specified element. |
no outgoing calls