# Map, Compare & Replace elements

### Map elements in Repository

Actual elements can be captured and mapped with the created custom elements&#x20;

**Pre-requisite:** &#x20;

Ensure to have manually created element stored in the Repository&#x20;

**Below is step-by-step process to map element in repository:**&#x20;

{% hint style="info" %}
**Note:** Only similar type of element is mapped. For example, button elements cannot be mapped with other type of elements like link or dropdown or textbox  &#x20;
{% endhint %}

Navigate to Element Repository window&#x20;

1. Click Tools button, select Map Element option to bring up Replace custom element window&#x20;

<figure><img src="/files/oKb4ewUzg7AMcDau1311" alt=""><figcaption></figcaption></figure>

2. Drag element from Captured Elements and drop it in Custom Elements then click Submit button. After successful capture a toast message saying **Mapped captured element successfully!** appears on the screen.

<figure><img src="/files/ihcRr2rILVkmTkQZXtc6" alt="" width="563"><figcaption></figcaption></figure>

### Compare Elements in Element Repository&#x20;

The Compare Elements feature functions as a self-healing process, capturing updated elements in the UI when the UI has been newly developed.&#x20;

Step-by-step process to map element in repository:&#x20;

Navigate to Element Repository window&#x20;

1. Click Tools button, select Compare Element option&#x20;
2. Enter URL (URL of earlier version AUT) to start comparing the elements from repository&#x20;

### Replace Elements in Element Repository&#x20;

The Replace Elements feature is used to swap newly identified elements with existing ones if their properties have changed.&#x20;

Step-by-step process to replace element in repository:&#x20;

Navigate to Element Repository window&#x20;

1. Click Tools button, Select Replace Element option&#x20;
2. Drag element from Captured Elements and drop element in Custom Elements to replace the existing element with new one.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/working-with-the-avo-assure-platform/create-and-execute-tests-with-design-studio/working-with-element-repository-section/manage-element-repository/map-compare-and-replace-elements.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
