Dynamically interacting with controls

How to interact dynamically with the child UI elements of a container class.

We will create a test script to dynamically click the three Detail texts residing under the Car1.1, Car2.2 and Car3.1 nodes as in the following figure:

  1. In a similar manner to how we captured the Detail text control in Unlocking container classes, we will now capture the tree node and tree view controls which contain the Detail control, using the Interface Viewer.

    Your interface entity, if you followed the example of the previous topic, should resemble the following:

  2. Open a new test module in the editor, and enter the following action lines:

    • The while/end while loop executes three times based on the specified condition to run argument.
    • The node path variable specifies the path to the tree node which contains each Detail text control. For example, Car/Car1/Car1.1Detail.
    • The click action clicks the three Detail text controls residing under the three tree nodes, Car1.1, Car2.1 and Car3.1.
    • Because TestArchitect supports multiple level dynamic identifiers, the control argument of the click action contains the tree node control which is anchored to the tree view control, and the Detail text is anchored to the tree node control sequentially. (Learn more.)
  3. Click the Execute Test toolbar icon.

  4. In the Execute Test dialog box, click the Execute button to begin execution.

Related concepts

Dynamic identifiers

Point-to-identify mode

Point-to-identify tool


Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGearはLogiGear Corporationの登録商標であり、Action Based TestingおよびTestArchitectはLogiGear Corporationの商標です。ここに記載されているその他の商標は、各所有者の財産です。

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400