Browser
33 commands. Toolkit id ooa.browser.
| Command | What it does |
|---|---|
| Attach to open browser | Connect 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 refresh | Go back, go forward or reload the page. |
| Call JavaScript function | Call a function defined by the page (e.g. app.calculateTotal) with arguments and return its result. |
| Capture: element action | Do 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 element | Click an element (waits until it is visible and enabled). |
| Close browser | Close the browser session. |
| Download file | Click a link or button that starts a download and save the file into a folder. |
| Download file from address | Download 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 exists | True when at least one element matches the selector (right away, or within the wait). |
| Element is visible | True when the captured element (or one matching the selector) is visible (right away, or within the wait). |
| Element text is | True 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 list | Read repeated items (product cards, search results, list entries) into a table: one row per item, one column per field found inside it. |
| Extract table | Read 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 links | Collect 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 attribute | Read an attribute of an element, e.g. href or value. |
| Get page source | Return the current HTML of the page (after scripts have run), and optionally save it to a file. |
| Get text | Read the visible text of an element. |
| Get URL and title | Return the current page's URL and title. |
| Go to URL | Open 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 browser | Start a browser, optionally open a URL, as a named session. |
| Page contains text | True 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 actions | Open 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 JavaScript | Run JavaScript in the page and return its result: an expression such as document.title, or statements with return. |
| Select item | Choose an option in a drop-down list by its value or visible text. |
| Set text | Fill a text field (replacing its content); Credential values are typed without ever being logged. |
| Start browser for automation | Start 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 tab | Make another tab current, by number (0 = first) or by title text; new tabs opened by links are included. |
| Take screenshot | Save a PNG screenshot of the page or one element. |
| Test capture | Open 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 element | Wait until an element appears, becomes visible, hidden or is removed. |