# Recording Specifics for Desktop Tests in Test Studio

Test Studio recording feature supports various desktop applications. Once a desktop test is configured for specific application you can start recording the automation scenarios.

This article guides you through the specifics of recording steps in a desktop test.

* [Ready State for Desktop Recording](https://www.telerik.com/teststudio/documentation/automated-tests/desktop-testing/recording-specifics-desktop-test#recording-ready-state)
* [Highlighting Menu](https://www.telerik.com/teststudio/documentation/automated-tests/desktop-testing/recording-specifics-desktop-test#highlighting-menu-in-desktop-recording)
* [Advanced Recording Tools](https://www.telerik.com/teststudio/documentation/automated-tests/desktop-testing/recording-specifics-desktop-test#advanced-recording-tools-in-desktop-recording)
* [Elements in Desktop Tests](https://www.telerik.com/teststudio/documentation/automated-tests/desktop-testing/recording-specifics-desktop-test#elements-in-desktop-tests)

## Recording Ready State

The recording of desktop tests can sometimes be relatively slower than recording web or WPF tests. To make sure that all actions are recorded properly and help you build robust tests Test Studio's recorder encompass a mechanism for element state detection. When an action is performed too early, before the element is ready for automation, the recorder indicates this with a *red label* stating **'Not ready to record'**.

![Not ready to record](https://www.telerik.com/teststudio/documentation/assets/41add82d50faf86f946b400316b3f1cf/fig1.png)

If you hold the mouse on an element for a while pops up another *gray label* stating **'Ready to record'**.

![Ready to record](https://www.telerik.com/teststudio/documentation/assets/efca6796e9d959030cc35ff2a4a88072/fig2.png)

> **Tip**
> <br>
> <br>
> Check <a href="https://www.telerik.com/videos/teststudio/desktop-testing-video-tutorial" target="_blank">this video tutorial for recording an end-to-end Desktop test scenario</a>.

## Highlighting Menu in Desktop Recording

Highlighting is enabled from the <a href="/features/recorder/compact-recording-toolbar#enable-hover-over-highlighting" target="_blank">Compact Recording Toolbar</a>. The <a href="/automated-tests/recording/hover-over-highlighting" target="_blank">highlighting menu</a> appears after you hold the mouse shortly over an element and allows you to add basic <a href="/features/recorder/highlighting-menu/quick-steps/quick-verification" target="_blank">verification</a> and <a href="/features/recorder/highlighting-menu/mouse-actions" target="_blank">action steps</a>.

![Highlighting menu options](https://www.telerik.com/teststudio/documentation/assets/f99f14ecfaba880e1054b5fc2d3d0d11/fig3.png)

The highlighting menu lists <a href="/features/recorder/highlighting-menu/element-options" target="_blank">additional options related to the highlighted element\</a.>

* To add the target element to the Elements Explorer;
* Select the target element in the DOM Explorer in the Advanced Recording tools;
* Select the target element in the DOM Explorer and expose the options for adding steps for it.

![Highlighting menu options](https://www.telerik.com/teststudio/documentation/assets/fb5c351b9127f9c4b3c364f0a02f04ad/fig3a.png)

The highlighting menu in desktop applications may remain opened over part of the application you want to interact with. In such cases you can use the **Close Menu** option to hide it.

![Close Highlighting menu](https://www.telerik.com/teststudio/documentation/assets/4bf971312ccedbe684be2507d553c7a4/fig4.png)

## Advanced Recording Tools in Desktop Recording

The **Advanced Recording Tools** window provides all its functionalities in a recording session for desktop application - the <a href="/features/recorder/advanced-recording-tools/dom-explorer" target="_blank">DOM Explorer</a> tab, the <a href="/features/recorder/advanced-recording-tools/element-steps/steps-overview" target="_blank">Elements Steps</a> and <a href="/features/recorder/advanced-recording-tools/common-steps" target="_blank">Common Steps</a> tabs.

![Advanced Recording Tools in Desktop app](https://www.telerik.com/teststudio/documentation/assets/e6651e62c521aa333f2bc629a9d6c817/fig40.png)

## Elements in Desktop Tests

The elements recorded in desktop applications have their own `TechnologyType`, which is called **Desktop**.

![Elements technology type](https://www.telerik.com/teststudio/documentation/assets/800e37e4851f0704c8b1c185e91e3c96/fig5.png)

Test Studio automatically generates find expressions for the elements from the tested desktop application. It uses the <a href="/features/project-settings/find-logic#find-logic-for-desktop-elements" target="_blank">**Smart Find Logic setting for desktop elements**</a> to choose which attribute to use in generating the elements expressions.

> **Tip**
> <br>
> <br>
> The default set attribute for generating find expressions is 'ControlTypeName'. Depending on the tested desktop app specifics, you can choose to create elements using 'xPath' or 'ClassName' by <a href="/features/project-settings/find-logic#find-logic-for-desktop-elements" target="_blank">**changing the Smart Find Logic settings on project level**</a>.

Open an element in <a href="/automated-tests/elements/find-element#options-in-element-pane-with-active-recording-session" target="_blank">**Edit mode** during a live recording session</a> to see the list of its attributes, which can be used in the find expression.

![Elements edit mode](https://www.telerik.com/teststudio/documentation/assets/19c0cf951ec2251df6f0550e4b1e3317/fig6.png)

> **Tip**
> <br>
> <br>
> You can maintain the desktop elements also without active recording session although there will be no list of element properties. All <a href="/features/custom-steps/overview" target="_blank">options for adding steps offline through the **Step Builder**</a> are applicable.

## See Also:

* <a href="https://www.telerik.com/videos/teststudio/desktop-testing-video-tutorial" target="_blank">Desktop Test Recording Video Tutorial</a>.
