

This page explains the purpose of Curator's UI Element Collector, how to use it while building an automation, and how the Markdown file it generates is leveraged inside code assistants such as Cursor, Claude Code, and Codex. The content is aimed at automation developers, analysts, and teams building robots with the help of artificial intelligence.
Every interface automation needs to know where the elements it will interact with are located: fields, buttons, menus, tables, and windows. The slowest and most fragile part of this work is usually discovering and validating the selectors for these elements, one by one, by manually inspecting the screen.
The Element Collector solves this step. It lets you capture elements directly on screen, both in web pages in Chrome and in Windows desktop applications, give each one a friendly name, annotate the desired action, and export everything into a single Markdown file, called the selector dossier.
Real screen -> Element Collector -> seletores-automacao.md -> Code assistant -> Automation
The dossier works as a bridge between the person who knows the business process and the AI tool that will write the code. Instead of describing the screen in free text, you hand the assistant a precise list of elements, with already-validated selectors and the intended use of each one.
A typical automation creation flow in Curator follows these steps:
Without the collector, the code assistant would have to guess the selectors, or you would have to inspect each element manually and transcribe the results. With the collector, this information arrives ready, validated, and organized.
The collector works with two sources at the same time:
The capture order is preserved across both sources. This allows documenting a process that alternates between browser and desktop system, in the actual execution sequence.
For each captured element, the collector records:
CPF Field, Login Button, Results grid.For web elements, selectors follow the pattern used by browser automation tools, prioritizing stable locators such as test identifiers, element role, and visible text, before falling back to more fragile paths. For desktop elements, the selector describes the process, the window, and the control's automation properties.
Ctrl+Click to capture the highlighted element. On desktop, normal clicking keeps working, so you can navigate through the system while collecting.Account holder CPF field is better than input 3.Type the CPF before continuing is more useful than just type.
When saving, the collector suggests writing the file seletores-automacao.md in the root of the project folder. Keeping this name and location makes it easier for code assistants, which read the project structure, to discover the file.
The file is a simple, lean Markdown. Each element becomes a section with name, screen, action, columns when it is a table, and up to two selectors, from the most robust to the alternative one.
Dossier example:
# Elementos coletados
## 1. Campo CPF
**Tela:** Portal do Cliente
**Acao:** Digitar o CPF do titular antes de clicar em Continuar
**Seletor 1**
page.get_by_role("textbox", name="CPF")
**Seletor 2**
page.locator("input[name=\"cpf\"]")
## 2. Botao Continuar
**Tela:** Portal do Cliente
**Acao:** Clicar apos preencher o CPF
**Seletor 1**
page.get_by_role("button", name="Continuar")
## 3. Grid de resultados
**Tela:** Sistema ERP
**Acao:** Extrair as linhas visiveis da consulta
**Colunas:** Codigo, Descricao, Valor
**Seletor 1**
process="erp.exe" window="Consulta" > type="DataGridControl" automation_id="gridResultados"
The format is intentionally minimalist. Internal capture details, such as screenshots and complete technical metadata, stay only in the collector session and do not go into the file. A short, objective dossier takes up less of the AI model's context and produces more precise answers.
The dossier was designed to be consumed by AI tools that generate code, such as Cursor, Claude Code, and Codex. The recommended flow is:
seletores-automacao.md in the project root.@seletores-automacao.md in the chat. In other tools, ask the assistant to read the file or paste the content into the prompt.Request example:
Read the seletores-automacao.md file. Implement the processing of each queue item: fill the CPF Field with the item's data, click the Continue Button, and extract the Results grid columns as output data. Use exactly the selectors from the dossier, always preferring Selector 1.
Why this works well:
The collector complements queue-based automation models. A common design is:
This way, the project structure handles the queue cycle, such as fetching the next item and recording success or failure, and the dossier handles the screen interaction. The code assistant connects the two parts.
element 1, which do not help the model understand the process.