Pick element (design time)
Open a page and let a person click one element; returns a robust selector and the element's details. Used by OneAgentStudio's Pick button.
Command in the Browser toolkit · id ooa.browser/pick_element · 7 inputs (1 required), 4 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Address (URL) | String | Yes | Page to open. | |
| Browser | String | No | edge | Browser. |
| Timeout (minutes) | Number | No | 10 | Give up after this long. |
| Endpoint | String | No | Pick in a browser that is already open (its debugging address, e.g. http://127.0.0.1:9222) instead of opening a new one; it stays open. | |
| Tab title | String | No | With endpoint: the tab to pick in, by its exact title. | |
| Tab address (URL) | String | No | With endpoint: the tab to pick in, by its address (used when the title is not given or not found). | |
| Tab ID | Number | No | Pick in this open tab of a browser connected through the ONEOFFICEAUTOMATION Browser Connector (from the open-windows list). |
Outputs
| Output | Type | What it is |
|---|---|---|
| selector | String | Selector for the clicked element. |
| element | Dictionary | tag, text, type, name and id of the element. |
| alternatives | Dictionary | Self-healing fallbacks for the element; pass them as alternatives to element actions. |
| object | Dictionary | The captured object: every property with use and match settings, CSS, XPath, iframes, page and a screenshot. |