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

Method LeftOf

dotnet/src/webdriver/RelativeBy.cs:190–198  ·  view source on GitHub ↗

Locates an element to the left of the specified element. The element to look to the left of for elements. A object for use in finding the elements. If is null.

(IWebElement element)

Source from the content-addressed store, hash-verified

188 /// <returns>A <see cref="RelativeBy"/> object for use in finding the elements.</returns>
189 /// <exception cref="ArgumentNullException">If <paramref name="element"/> is null.</exception>
190 public RelativeBy LeftOf(IWebElement element)
191 {
192 if (element == null)
193 {
194 throw new ArgumentNullException(nameof(element), "Element relative to cannot be null");
195 }
196
197 return SimpleDirection("left", element);
198 }
199
200 /// <summary>
201 /// Locates an element to the left of the specified element.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected