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

Method Above

dotnet/src/webdriver/RelativeBy.cs:126–134  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Calls

no outgoing calls