FindChildren<TChild> Method (ITestObject)
Returns all the child test objects that match the specified test object type and description filter. For example, you can use this method to retrieve all Web buttons on a Page with type="submit".

C# Syntax

TChild[] FindChildren<TChild>( 
   IDescription selector
where TChild: class, ITestObject


A description containing the set of properties and values that should be common to all objects that are returned.

Type Parameters

The test object interface type to find. To avoid limiting to a specific test object type, use ITestObject.

Return Value

An array of child test objects.
var suggestionList = suggestions.FindChildren<IWebElement>(new WebElementDescription
    TagName = "LI"