Identifying Multiple Objects with One Locator

You can use the FindAll method to identify all objects that match a locator rather that only identifying the first object that matches the locator.

Example

The following code example uses the FindAll method to retrieve all hyperlinks of a Web page:

VB

Dim links As IList(Of DomLink) = browserWindow.FindAll(Of DomLink)("//a")

C#

IList<DomLink> links = browserWindow.FindAll<DomLink>("//a");