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

Method WithLocator

dotnet/src/webdriver/RelativeBy.cs:58–61  ·  view source on GitHub ↗

Creates a new for finding elements with the specified tag name. A By object that will be used to find the initial element. A object to be used in finding the elements. If is null.

(By by)

Source from the content-addressed store, hash-verified

56 /// <returns>A <see cref="RelativeBy"/> object to be used in finding the elements.</returns>
57 /// <exception cref="ArgumentNullException">If <paramref name="by"/> is null.</exception>
58 public static RelativeBy WithLocator(By by)
59 {
60 return new RelativeBy(by);
61 }
62
63 /// <summary>
64 /// Finds the first element matching the criteria.

Calls

no outgoing calls