# Highlighting Elements in Recording Mode

The **Highlighting menu** is a powerful set of options related to the targeted element. It brings additional options to interact with an element in the terms of test recording, apart from clicking or entering text.

In this article you will find useful details and hints about the highlighting feature in Test Studio recorder and how to get most benefits of this.

1. [How to Enable or Disable the Highlighting](https://www.telerik.com/teststudio/documentation/automated-tests/recording/hover-over-highlighting#enable-or-disable-highlighting-of-elements)
2. [Quick Steps in Highlighting Menu](https://www.telerik.com/teststudio/documentation/automated-tests/recording/hover-over-highlighting#quick-steps)
3. [Mouse Actions in Highlighting Menu](https://www.telerik.com/teststudio/documentation/automated-tests/recording/hover-over-highlighting#mouse-actions)
4. [Scroll Actions in Highlighting Menu](https://www.telerik.com/teststudio/documentation/automated-tests/recording/hover-over-highlighting#scroll-actions)
5. [*Add to Elements* Option in Highlighting Menu](https://www.telerik.com/teststudio/documentation/automated-tests/recording/hover-over-highlighting#add-to-elements)
6. [*Locate in DOM* Option in Highlighting Menu](https://www.telerik.com/teststudio/documentation/automated-tests/recording/hover-over-highlighting#locate-in-dom)
7. [*Build Step* Option in Highlighting Menu](https://www.telerik.com/teststudio/documentation/automated-tests/recording/hover-over-highlighting#build-step)

> **Tip**
> <br>
> <br>
> Check out this <a href="https://www.youtube.com/watch?v=dIiXjwsPUtA&list=PLvmaC-XMqeBa7evdakaPkd_kctAJRm85h&index=4">neat video tutorial</a> which will help in analyzing the elements in the tested application.

## Enable or Disable Highlighting of Elements

Once in an active recording session you can enable or disable the *highlighting* from the <a href="/features/recorder/compact-recording-toolbar" target="_blank">**Compact Recording Toolbar**</a>.

![Enable\disable highlighting](https://www.telerik.com/teststudio/documentation/assets/bff38bc18ee927d0238dba20d213f61c/fig1.png)

> **Note**
> <br>
> <br>
> The highlighting feature **can be enabled (or disabled) even when the recording is paused**.

When enabled and the mouse pointer pauses over an element in the recording surface of the tested application, you will see the **Elements menu** with multiple options. This rich menu makes it easy to work with the recording surface and its elements. It provides quick access to relevant functions right in the application you are testing.

![Elements Menu](https://www.telerik.com/teststudio/documentation/assets/226c0bf40da2c735953e1b6cba594868/fig2.png)

> **Tip**
> <br>
> <br>
> Use the *Pause/Break* key on your keyboard to toggle on or off the Highlighting feature.

## **Options in the Highlighting Menu**

The **Elements Menu** provides access to various actions and functions apart from the straightforward *click* or *type* actions. These are divided in few sections to speed up their usage. Read below what options there are in the different sub-menus.

## Quick Steps

**Quick Steps** sub-menu provides a list of tasks, which can be performed against the highlighted element - these are context sensitive and are different depending on the target element. There are few options listed to add a <a href="/features/recorder/advanced-recording-tools/element-steps/verifications/quick-verification" target="_blank">**quick verification**</a>, a <a href="/features/recorder/advanced-recording-tools/element-steps/verifications/wait" target="_blank">**wait step**</a> or <a href="/features/recorder/advanced-recording-tools/element-steps/verifications/extraction" target="_blank">**to extract any of the element's attributes**</a>, based on its specifics.

![Quick Steps Sub-menu](https://www.telerik.com/teststudio/documentation/assets/9a7743bcd190be6bf7921f5a1a3c9066/fig4.png)

## Mouse Actions

**Mouse Actions** sub-menu provides <a href="/features/recorder/highlighting-menu/mouse-actions" target="_blank">quick access to different type of click steps</a> like double-click, right mouse click, mouse key up or down, mouse hover over action, etc. Mouse click steps get **recorded with default coordinates** to target the absolute center of element. If you need to specify the coordinates for a click action you can use the <a href="/features/recorder/advanced-recording-tools/element-steps/actions/adv-mouse-actions#specify-the-click-location" target="_blank">advanced mouse click actions</a> and modify these.

![Mouse Actions Sub-menu](https://www.telerik.com/teststudio/documentation/assets/f84a2ed3c423a8245ce6a77e476037d5/fig5.png)

> **Tip**
> <br>
> <br>
> The **Drag and Drop action** requires the selection of the element to drag and the element to drop it to. Therefore, this can only be <a href="/features/recorder/advanced-recording-tools/element-steps/actions/drag-and-drop" target="_blank">added through the Advanced Recording Tools</a>.

## Scroll Actions

In certain occasions you may need to scroll the page and change the visible part of it. The <a href="/features/recorder/highlighting-menu/scroll-actions" target="_blank">**Scroll Actions** sub-menu</a> gives the options to choose an element on application screen and scroll it to the top, bottom or center of the page.

![Scroll Actions Sub-menu](https://www.telerik.com/teststudio/documentation/assets/aca80b3a31578d28db78c12fac806556/fig6.png)

> **Note**
> <br>
> <br>
> The **<a href="/features/recorder/advanced-recording-tools/element-steps/steps-overview" target="_blank">Element Steps</a> tab in the Advanced Recording Tools** provides the full set of steps available for the selected element.

## Add to Elements

**Add to Elements** option allows you to add the highlighted element to the selected test in project as an *'external reference'* - that means the element is not related to any step from the test, but is still listed in it and can be referred from a coded step, for example.

![Add to Elements](https://www.telerik.com/teststudio/documentation/assets/563ed5a0ba8be07225f57c4fd4d0ecd3/fig5.png)

## Locate in DOM

**Locate in DOM** is an option, which directly opens the <a href="/features/recorder/advanced-recording-tools/dom-explorer" target="_blank">DOM Explorer in the **Advanced Recording Tools**</a> and selects the highlighted element in the DOM structure of the page. You can further explore the surrounding elements of the selected one, or use the options for building a step using this element.

![Locate in DOM](https://www.telerik.com/teststudio/documentation/assets/073bb622310c878e4e56685ed39d4b08/fig6.png)

## Build Step

**Build Step...** is an option very similar to the **Locate In DOM** one - it selects the highlighted element in the DOM tree and directly switches to the <a href="/features/recorder/advanced-recording-tools/element-steps/steps-overview" target="_blank">Element Steps</a> tab in the **Advanced Recording Tools**.

![Build Step](https://www.telerik.com/teststudio/documentation/assets/465711305f34e526e5a8ec06579697f7/fig7.png)

There are additional actions and verifications you can add against the selected element. For example, you can add mouse actions and <a href="/features/recorder/advanced-recording-tools/element-steps/verifications/advanced-verification" target="_blank">advanced verification steps</a> for attribute, image or text from image.
