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.


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

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