Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Address (URL)StringYesPage to open.
BrowserStringNoedgeBrowser.
Timeout (minutes)NumberNo10Give up after this long.
EndpointStringNoPick 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 titleStringNoWith endpoint: the tab to pick in, by its exact title.
Tab address (URL)StringNoWith endpoint: the tab to pick in, by its address (used when the title is not given or not found).
Tab IDNumberNoPick in this open tab of a browser connected through the ONEOFFICEAUTOMATION Browser Connector (from the open-windows list).

Outputs​

OutputTypeWhat it is
selectorStringSelector for the clicked element.
elementDictionarytag, text, type, name and id of the element.
alternativesDictionarySelf-healing fallbacks for the element; pass them as alternatives to element actions.
objectDictionaryThe captured object: every property with use and match settings, CSS, XPath, iframes, page and a screenshot.