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

Method FindElements

dotnet/src/webdriver/WebElement.cs:368–376  ·  view source on GitHub ↗

Finds all IWebElements within the current context using the given mechanism. The locating mechanism to use. A of all WebElements matching the current criteria, or an empty list if nothing matches.

(By by)

Source from the content-addressed store, hash-verified

366 /// <returns>A <see cref="ReadOnlyCollection{T}"/> of all <see cref="IWebElement">WebElements</see>
367 /// matching the current criteria, or an empty list if nothing matches.</returns>
368 public virtual ReadOnlyCollection<IWebElement> FindElements(By by)
369 {
370 if (by == null)
371 {
372 throw new ArgumentNullException(nameof(@by), "by cannot be null");
373 }
374
375 return by.FindElements(this);
376 }
377
378 /// <summary>
379 /// Finds all child elements matching the given mechanism and value.

Callers

nothing calls this directly

Calls 3

ExecuteMethod · 0.95
AddMethod · 0.45

Tested by

no test coverage detected