Retrieves a list of Children found from the specified Element based on the conditions and scope defined.
Filter - The conditions required for all UI Elements.
Scope - Enables you to set the scope of the UI elements by selecting either Element, Children, Descendants, or Subtree from the dropdown.
Found Children - A list of automation element(s) found.
ContinueOnError - The Boolean value to specify whether to continue executing the next activities even if there is an error thrown on this activity.
DelayAfterMs - Duration in milliseconds to delay before moving to the next activity.
DelayBeforeMs - Duration in milliseconds to delay before pushing this activity to the selected element.
TimeoutMS - Duration in milliseconds to send an error if the selected Element is not located.
DisplayName - Renames the activity.
Target.Element - Use UIElement variable. This property cannot be used together with Selector.
Target.Selector - Property used to find a specific UI Element when the activity is executed.
- Target.WaitElement - Waits for an Element to be ready before the activity runs if COMPLETED is chosen. Does not wait for an Element if it is set as NONE.
Target.TimeoutMS - Duration in milliseconds to send an error if the selected element is not located.
For this example, "nike bag" was searched in eBay. The goal of this sample is to retrieve the first product's name by using Find Children activity.
- Create a List<RAXUIAutomationElement> variable called children.
- Add a Find Children activity, and in the Found Children field under Properties, add children.
- Click Select Element On Screen and select the first product in the search results.
- In the Filter field under Properties, add "h3.lvtitle" inside the two single quotation marks. This is to specifically get the product's name only.
- Create a String variable called text.
- Add a Get Text activity, and in the Output field under Properties, add text.
- In the Element field in the Properties, write "children(0)". This is to get the first instance of the output of Find Children.
- Add a Write Line activity, and in the Text field, write text.
The use case should look as the following screenshot:
This should be the result in the Output panel: