Validating tooltips is a bit more challenging than validating other types of UI elements. In this chapter, you’ll learn how to do it.
Test definition
We want to validate that the tooltip shown in the image below appears properly when a user hovers the mouse over the Shuffle button.
Activate tooltip validation
To activate tooltip validation:
Recorder hotkeys are explained in Ranorex Studio fundamentals > Ranorex Recorder>Recorder control center & hotkeys.
Validate the tooltip
-
Place the cursor over the UI element whose tooltip you want to validate.
-
When the tooltip appears, press T.
-
In the next screen, check whether the correct tooltip element has been selected and click Next to confirm.
-
Ensure the attribute Exists is checked and click OK to confirm.
Result
There are two recorded actions in the actions table. Action 2 is the tooltip validation.
-
Actions table and tooltip validation action.
-
Linked repository item representing the tooltip UI element.
Download the sample solution
You can download the sample solution for this chapter here. It contains the finished solution with all recorded actions.
Theme: Tooltip validation
Time: 15 minutes
Install the sample solution:
-
Unzip to any folder on your computer.
-
Start Ranorex Studio and open the solution file
TooltipValidation.rxsln