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