Welcome to the Ranorex Support Portal

Snapshot files

Ranorex snapshot is a file representation of the user interface (UI) structure of an AUT at a particular point in time. A Ranorex snapshot captures all interface elements, their hierarchy, values, etc.

Snapshot files are created viewed in Ranorex Spy. Their file extension is .rxsnp.

Typically, snapshot files are used to share detailed information about the UI of an application with the Ranorex support or technical sales team. They are also helpful when asking for technical help on our forums.

In this chapter

Create a standard snapshot file

Standard snapshot files capture a UI that contains no hidden UI elements like menus, menu items, context menus, tool tips, etc. Creating a snapshot of a UI that contains these elements is explained in the next topic below.

To create a standard snapshot file:

  1. Start your AUT (e.g. the Ranorex Studio Demo Application).

  2. Start Ranorex Spy.

  1. Using the TRACK button, track a UI element in the AUT (e.g. the Submit button as shown below).

  1. In the toolbar of the element tree browser, click the Save as snapshot… button.

  2. Name the file and specify where it should be saved.

  3. Click Save to start snapshot file creation.

  1. While the snapshot is being created, a progress bar indicates progress. Upon completion, the following message appears. Click Close.


Further reading

Advanced settings are explained in

Ranorex Studio system details > Settings & configurations > ⇢ Advanced settings & configurations.

Create a snapshot of hidden UI elements

Some UI elements, such as drop-down menuspop-up windowscombo boxes etc., only become visible after a an interaction like a click and usually disappear if the AUT loses focus. These elements are “hidden” and therefore not automatically included in a snapshot file. This is because they appear as separate items in Ranorex Spy at the top level of the element tree. Capturing these elements in a snapshot file requires use of the instant tracking function.


Further reading

Tracking hidden UI elements is explained in

Ranorex Studio advanced > Tracking UI elements > ⇢ Instant tracking.

An alternative method is explained in

Ranorex Studio advanced > Tracking UI elements > ⇢ Track button.

To create a snapshot file with hidden UI elements:

  1. Start your AUT and navigate to where the hidden UI element you want to track appears (e.g. in the Test database tab of the Demo Application).

  2. Start Ranorex Spy.

  1. Make the hidden UI element visible, e.g. by opening the containing drop-down menu, as for the Project Management list item in the Demo Application, and ensure it is in focus, e.g. by mousing over it.

  2. With the UI element in focus, press Ctrl+WIN.

  3. The tracked UI element appears in the element tree in Spy.

  1. Now immediately before anything else, press Scroll to create a snapshot of the previously tracked hidden UI element and its ancestor subtree and cache it to the working memory.

  1. Snapshot file created successfully and cached to working memory. In this case, 10 UI elements were packed into the snapshot file, which is now opened in Ranorex Spy.

  2. Warning that the snapshot file may be incomplete. This usually happens when you try to create a snapshot of hidden UI elements without using Scroll.

  1. The snapshot file is automatically opened in Ranorex Spy. This is indicated by the status message that switches from LIVE to SNAPSHOT.

Save the snapshot file

Finally, you need to save the Scroll-created snapshot from the working memory to permanent storage.

  1. In the element tree toolbar, click the Save as snapshot… button.

  2. Name the file, specify where it should be saved, and click Save.

  1. A message shows that the snapshot file was saved successfully.

Load a snapshot file

You can also load snapshot files in Ranorex Spy.

To do so:

  1. Start Ranorex Spy and in the element tree toolbar, click the Load from snapshot… button.

  2. Browse to the snapshot file you want to open.

  3. Click Open.


Loading a snapshot – part I
  1. Start Ranorex Spy and click Load from snapshot… in the toolbar

  2. Choose folder and saved snapshot file

  3. Click Open.


  1. The snapshot file is opened in Spy, as indicated by the new element tree and the status indicator changing from LIVE to SNAPSHOT.


  1. Status indicator showing the snapshot file’s date of creation.



Get the latest test automation information right in your mailbox.


© 2024 Ranorex GmbH. All Rights Reserved