Description

Retrieves a list of Children found from the specified Element based on the conditions and scope defined.




Attributes

Input

  • Filter - The conditions required for all UI Elements.

Options

  • Scope - Enables you to set the scope of the UI elements by selecting either Element, Children, Descendants, or Subtree from the dropdown.

Output

  • Found Children - A list of automation element(s) found.

Common

  • 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.

Misc

  • 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.


Example

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.

  1. Create a List<RAXUIAutomationElement> variable called children.
  2. Add a Find Children activity, and in the Found Children field under Properties, add children.
  3. Click Select Element On Screen and select the first product in the search results. 
  4. 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.
  5. Create a String variable called text.
  6. Add a Get Text activity, and in the Output field under Properties, add text.
  7. In the Element field in the Properties, write "children(0)". This is to get the first instance of the output of Find Children.
  8. 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: