SearchContextFindElements Method
Find all elements within the current context using the given mechanism.

Namespace: Selenium
Assembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax
VB Usage
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: WebElements
A 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