> For the complete documentation index, see [llms.txt](https://astro-rpa.gitbook.io/astro-rpa-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://astro-rpa.gitbook.io/astro-rpa-user-guide/astro-studio/search/searchpatterns.md).

# Search patterns

The property of a search template contains the "..." button, upon clicking which the window of visual editing of a template (depends on the type of an element) will appear.

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-e5239112b00129b0fca5f011b458ef147befdc85%2F0%20\(8\).png?alt=media)

At the moment, the elements of the following categories have search templates:

* Browser Elements Group
* Desktop Elements Group

## Browser

A template for searching for Browser elements looks like this.

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-66d84630c83be5c44d4ca0792f3786b8483f69a3%2FSearch_Template_Browser.png?alt=media)

To add a template element, you should click ![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-782036c0d8a46b1c470372c5bd177bbe4d688973%2F1%20\(49\).png?alt=media) button, then select a new line and enter data in the Tag, Text and Index fields. To refine search, you can enter the names and values of the tag attributes in the table (key, value). If you specify several rows, the search of an element in the browser will be carried out depthward starting from the uppermost template.

To delete a template, you can use![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-32a7f9e075b3a3ec6167726203f7665ed4b26be7%2F2%20\(7\).png?alt=media)button, or press the Del key.

A template can be generated automatically by clicking the "Select a Component" button ![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-33644ee1add361ebadd565b218d91f573738dbe8%2F3%20\(7\).png?alt=media) and clicking the sought element in the desired browser window. You may also use quick button on element.

If you click the "Display the Component" button![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-2cb21befe85287e4d0609bd887148708e13f6299%2F4%20\(9\).png?alt=media), the control element marked in the current template will be highlighted.

The "UI Inspector" button ![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-b811db5c2bac0521b5421ce1240596bd46351a1b%2F5%20\(8\).png?alt=media) is used to display/hide the interfaces exploring module.

In this module you can examine the application structure. Selected elements are moved to a template using ![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-8bed6423b64055bc6c1594500a23cceb513fa466%2F7%20\(7\).png?alt=media) and ![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-8b5a2727016bb6814099623250298f4b68fbc936%2F8%20\(6\).png?alt=media) buttons.

A search template is a JSON format string containing all the attributes needed for search.

## Desktop

A template for searching for Desktop elements looks like this.

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-60916925a50f7e5e973dcbba4272ed46ea70b35a%2FSearch_Template_Desktop.png?alt=media)

To add a template element, click ![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-782036c0d8a46b1c470372c5bd177bbe4d688973%2F1%20\(59\).png?alt=media) button, then select a new line and enter data in the Name, AutomationID, ClassName, ControlType, LocalizedControlType and Index fields. To refine search, you can enter the names and values of attributes of the sought component in the table (key, value). If you specify several rows, the search for an element in the robotic application will be carried out depthward starting from the uppermost template. For a shorter route select the check box "Quick search".

To delete a template, you can use ![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-32a7f9e075b3a3ec6167726203f7665ed4b26be7%2F2%20\(7\).png?alt=media)button or press the Del key.

A template can be generated automatically by clicking the "Select a Component" button ![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-33644ee1add361ebadd565b218d91f573738dbe8%2F3%20\(7\).png?alt=media) and clicking the sought element in the desired browser window. You may also use quick button on element.

If you click the "Display the Component" button ![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-2cb21befe85287e4d0609bd887148708e13f6299%2F4%20\(9\).png?alt=media), the control element marked in the current template will be highlighted.

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-0fae5f9d7bab95731ed85cff6b598accf5b45c7c%2FIndicate_Control.png?alt=media)

The "UI Inspector" button ![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-b811db5c2bac0521b5421ce1240596bd46351a1b%2F5%20\(8\).png?alt=media) is used to display/hide the interfaces exploring module.

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-61cab0b2007f50ae58287f7534da67c89fde90bb%2F6%20\(2\).png?alt=media)

In this module you can examine the application structure. Selected elements are moved to a template using ![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-8bed6423b64055bc6c1594500a23cceb513fa466%2F7%20\(7\).png?alt=media) and ![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-8b5a2727016bb6814099623250298f4b68fbc936%2F8%20\(6\).png?alt=media) buttons.
