Skip to main content

Browser

33 commands. Toolkit id ooa.browser.

CommandWhat it does
Attach to open browserConnect to an Edge or Chrome that is already running, through its DevTools debugging port, and use it as a named session. Only a browser started with a debugging port can be reached (use Start browser for automation, or start it with --remote-debugging-port); a browser opened the usual way has none. Closing the session later only disconnects; the browser stays open.
Back, forward or refreshGo back, go forward or reload the page.
Call JavaScript functionCall a function defined by the page (e.g. app.calculateTotal) with arguments and return its result.
Capture: element actionDo one action on a captured element: click, type, read text, attributes or all properties, select, check, hover, drag, upload, wait and more. The element is the captured object (properties you choose, each with its own match rule) or a selector.
Click elementClick an element (waits until it is visible and enabled).
Close browserClose the browser session.
Download fileClick a link or button that starts a download and save the file into a folder.
Download file from addressDownload a file from its address and save it, signing in with Windows (NTLM/Kerberos) or a user name and password when the server asks.
Each page (click Next until it is gone)One pass per page: the first pass is the page as it is, then Next is clicked and the loop waits for the page to change, until Next is no longer there (or is disabled). Gives the page number, from 1.
Element existsTrue when at least one element matches the selector (right away, or within the wait).
Element is visibleTrue when the captured element (or one matching the selector) is visible (right away, or within the wait).
Element text isTrue when the element's text (or a field's value) equals, contains, starts with or matches the text (right away, or within the wait).
Extract listRead repeated items (product cards, search results, list entries) into a table: one row per item, one column per field found inside it.
Extract tableRead an HTML table into a Data Table (first row as column names), or chosen columns of any repeated rows (a grid or list) by XPath.
Find broken linksCollect the links on the current page (or on a page or whole site given by its address) and check each one, reporting those that fail or return an HTTP error (links to files, file:, are looked up on disk); optionally save the list to a CSV file.
Get attributeRead an attribute of an element, e.g. href or value.
Get page sourceReturn the current HTML of the page (after scripts have run), and optionally save it to a file.
Get textRead the visible text of an element.
Get URL and titleReturn the current page's URL and title.
Go to URLOpen a URL in the current tab and wait for it to load.
List windows (design time)List the browser tabs an agent can reach (in this run's sessions and in browsers with a debugging port) and, on Windows, the titles of open desktop windows. Used by OneAgentStudio to offer windows to choose from.
Open browserStart a browser, optionally open a URL, as a named session.
Page contains textTrue when the visible page text contains the text.
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.
Record web actionsOpen a browser, record your clicks, typing and selections as steps, and return them when you press Stop recording or close the browser. Edge and Chrome stay open afterwards (on the agents' debugging port), so the page can be captured again. Passwords are never recorded.
Run JavaScriptRun JavaScript in the page and return its result: an expression such as document.title, or statements with return.
Select itemChoose an option in a drop-down list by its value or visible text.
Set textFill a text field (replacing its content); Credential values are typed without ever being logged.
Start browser for automationStart Edge or Chrome with a debugging port and its own profile folder in the workspace, so this agent, later agents and Attach to open browser can all reach it. When a browser already listens on the port it is reused instead. A browser opened the usual way cannot be reached, because it has no debugging port; recent browsers also refuse a debugging port on the everyday profile, which is why a separate profile is used. The browser keeps running after the agent ends.
Switch tabMake another tab current, by number (0 = first) or by title text; new tabs opened by links are included.
Take screenshotSave a PNG screenshot of the page or one element.
Test captureOpen a page, find every element that matches a captured object, outline them for a few seconds and report how many match. Used by OneAgentStudio's Test button.
Wait for elementWait until an element appears, becomes visible, hidden or is removed.