export_robot_resource
Turn inspected DOM elements into a reusable Robot Framework .resource file with Variables and Keywords sections. Configure library, children, and interactivity to generate Page Objects.
Instructions
Gera um arquivo de recurso (.resource) completo para o Robot Framework baseado nos elementos inspecionados até o momento, contendo a seção *** Variables *** e *** Keywords *** (Page Object Pattern).
Args: page_name: Nome da página ou componente (ex: 'LoginPage', 'DashboardHeader'). library: Biblioteca alvo do Robot Framework ('Browser' para Playwright ou 'SeleniumLibrary'). include_children: Inclui o componente selecionado e seus descendentes. only_interactive: Limita descendentes a elementos interativos. max_depth: Profundidade máxima dos descendentes incluídos. output_path: Caminho opcional onde o arquivo .resource será gravado.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"page_name": "<page_name>"
},
"name": "export_robot_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| library | No | Browser | |
| max_depth | No | ||
| page_name | Yes | ||
| output_path | No | ||
| include_children | No | ||
| only_interactive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |