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

Method FindElements

dotnet/src/webdriver/WebDriver.cs:324–332  ·  view source on GitHub ↗

Finds the elements on the page by using the object and returns a ReadOnlyCollection of the Elements on the page By mechanism to find the element ReadOnlyCollection of IWebElement IWebDriver driver = new InternetExplorerDriver(); ReadOnlyCollection<![CDATA[ ]]> classList = driver.FindEleme

(By by)

Source from the content-addressed store, hash-verified

322 /// </code>
323 /// </example>
324 public ReadOnlyCollection<IWebElement> FindElements(By by)
325 {
326 if (by == null)
327 {
328 throw new ArgumentNullException(nameof(@by), "by cannot be null");
329 }
330
331 return by.FindElements(this);
332 }
333
334 /// <summary>
335 /// Finds all 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