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

Namespace: Selenium
Assembly: Selenium (in Selenium.dll) Version: (
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)


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
Set elts = driver.FindElements(By.Any(By.Name("name"), By.Id("id")))
See Also