Find out how to track and identify single UI elements with the Track button from a recording module or repository file in Ranorex Studio.
Test example definition
To explain tracking with the Track button, use the Test database of the Ranorex Studio Demo Application.
-
The Test database tab in the demo application.
-
The test database working environment.
The Track button is available in different locations:
- In an opened recording module in the repository toolbar
- In an opened repository file
- In Ranorex Spy
-
Start the demo application and click the Test database tab.
-
Start Ranorex Studio and create a new blank solution.
-
Open the default recording module and click the Track… button in the repository toolbar.
-
Ranorex Studio is minimized. In the demo application, mouse over the Female radio button and click it when the red frame surrounds it as below to track it.
You can track only one element this way. After tracking this element, you’re returned to Ranorex Studio. To track another element, you need to repeat the process.
Results
Once the UI element has been tracked and identified, the tracking process ends and you’re returned to Ranorex Studio. There, you can see the created repository item of the UI element.
-
The repository contains the repository item RdbFemale. This repository item represents the Female radio button and is the result of the tracking process.
-
The RanoreXPath of the repository item. This path identifies the position of the UI element in the AUT’s UI.
- When you click the Track button, the tracking process starts and is ready to track and identify exactly one UI element.
- The tracking process ends automatically after tracking one UI element.
- Pressing F12 during the tracking process pauses tracking. This allows you to click elements without tracking them. This way, you can track UI elements hidden in drop-down lists or menus that need to be opened first.
-
Pressing
F12
during the tracking process allows you to track the menu item Project Management from a drop-down list in the demo application.