Share this page

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

Parameters

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

Type Parameters

TChild
  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.
Example

    var suggestionList = suggestions.FindChildren<IWebElement>(new WebElementDescription
    {
        TagName = "LI"
    });

Tips to improve your search results... OpenText™ Functional Testing for Developers .NET SDK Version: 25.2 OpenText™ Functional Testing for Developers SDK 25.2 All View Local Help Center View Online Help Center Version: