MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / RightOf

Method RightOf

dotnet/src/webdriver/RelativeBy.cs:222–230  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Calls

no outgoing calls