SearchContextFindElements Method |
Find all elements within the current context using the given mechanism.
Namespace: SeleniumAssembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax Dim instance As SearchContext
Dim by As By
Dim minimum As Integer
Dim timeout As Integer
Dim returnValue As WebElements
returnValue = instance.FindElements(by,
minimum, timeout)
Parameters
- by
- Type: SeleniumBy
The locating mechanism to use - minimum (Optional)
- Type: SystemInt32
Minimum number of elements to wait for - timeout (Optional)
- Type: SystemInt32
Optional timeout in milliseconds
Return Value
Type:
WebElementsA list of all WebElements, or an empty list if nothing matches
Examples Set elts = driver.FindElements(By.Any(By.Name("name"), By.Id("id")))
See Also