Validation of tool-tips | Ranorex Studio User Guide
Help CenterUser GuideRanorex Studio fundamentals

Validate  tooltips

Validating tooltips is a bit more challenging than validating other UI elements. In this chapter, you’ll learn how to do it.

In this chapter

    Test definition

    We want to validate that the tooltip shown in the image below appears and displays the tooltip message when hovering the mouse over the Shuffle button.

    Tooltip example in demo application

    Activate tooltip validation

    To activate tooltip validation:

    Recorder hotkey activation

    Recorder hotkey activation

    Check Enable hotkeys.
    Press T to activate tooltip validation mode.

    Further reading

    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.

    Validating tooltips

    Specifying tooltip validation

    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.

    Specifying tooltip validation

    Result

    In the actions table, you’ll see 5 recorded actions. Action #4 is the tooltip validation.

    Tooltip validation result

    Tooltip validation result

    Actions table and tooltip validation action.
    Linked repository item representing the tooltip UI element.

    Sample solution

    The example herein can be downloaded. Feel free to experiment with the solution and improve your knowledge.

    Training! What do I do?

    Theme: Tooltip validation
    Time: Less than 20 min

    Download sample file

    Installation:

    Unzip the project directory to any folder on your computer
    Start Ranorex Studio and open the solution file TooltipValidation.rxsln

    tipp icon

    Hint

    The sample solution is available for Ranorex versions 8.0 or higher. You need to agree to the automatic solution upgrade for versions 8.2 and higher.

    Download the sample solution

    You can download the sample solution for this chapter here. It contains the finished solution with all actions recorded.

    Sample solution

    Theme: Build a test
    Time: 15 minutes

    Download sample file

    Install the sample solution:

    Unzip to any folder on your computer.
    Start Ranorex Studio and open the solution file TooltipValidation.rxsln

    tipp icon

    Hint

    The sample solution is available for Ranorex versions 8.0 or higher. You must agree to the automatic solution upgrade for versions 8.2 and higher.