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)
| 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. |
nothing calls this directly
no test coverage detected