Validation of tooltips
Validating tooltips is a bit more challenging than validating other types of UI elements. In this chapter, you’ll learn how to do it.
Screencast
The screencast “Tooltip validation” walks you through the information found in this chapter.
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 hotkey activation
Activate Enable hotkeys.
Further reading
Validate the tooltip
When the tooltip appears, press T.
Specifying tooltip validation
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.
Tooltip validation result
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.
Sample solution
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
Hint
The sample solution is available for Ranorex Studio versions 8.0 or higher. You must agree to the automatic solution upgrade for versions 8.2 and higher.