Browser actions
The 50 browser actions of the Quin Local API — request format, locators, parameters, results and action error codes.
Quin drives browsers through its own action set, the same one RPA Plus browser blocks use. You describe what to do; no code is sent into the page, and there is no "evaluate JavaScript" action.
POST /api/v1/browsers/{sid}/actions — scope browser:control.
Request
{"action": "click", "tab": "t1", "locator": {"role": "button", "name": "Save"}, "params": {}, "timeout_ms": 15000}| Field | Notes |
|---|---|
action | One of the 50 names below (GET /status lists them in automation.actions) |
tab | Optional tab id (t1, t2, …); default the active tab. Ids are stable per session and never reused |
locator | A locator object, or a string (a CSS selector) |
params | The action's parameters; unknown keys are refused |
timeout_ms | Default 15000, maximum 300000 |
Locators
Exactly one of css, text, role (with optional name), label, placeholder, test_id,
xpath, plus optional modifiers: nth (index; -1 = last), exact (bool), has_text, and
frame (CSS selector of an iframe, or a list of up to 5 for nested frames, outermost first). CSS
pierces open shadow roots.
Actions that act (click, fill, check, select, drag…) need exactly one match; two or more is
ambiguous_locator — add nth or a more specific locator. Actions that read use the first match.
Response
{"action_id": "a_5e1f0c9b2d47", "action": "title", "outcome": "ok", "tab": "t1",
"duration_ms": 12, "result": {"title": "Example Domain"}}A failed action still answers HTTP 200, with "outcome": "error", "result": null and
"error": {"code", "message"}. A request that cannot be parsed at all (unknown action, bad tab,
malformed locator) is 422; another holder in control is 409 session_busy.
Navigation
| Action | Locator | Params | Result |
|---|---|---|---|
navigate | – | url (required), wait_until | {url, status} |
reload | – | wait_until | {url} |
back | – | wait_until | {url} |
forward | – | wait_until | {url} |
url | – | – | {url} |
title | – | – | {title} |
wait_until: load (default), domcontentloaded, networkidle, commit. navigate.url must be
http:/https:, data: or about:blank; file:, javascript:, about:config/preferences/
addons and browser-internal schemes are invalid_params.
Elements
| Action | Locator | Params | Result |
|---|---|---|---|
click | required | modifiers (Alt, Control, Meta, Shift), position {x, y}, force | {} |
dblclick | required | same as click | {} |
right_click | required | same as click | {} |
hover | required | – | {} |
focus | required | – | {} |
fill | required | value | {} |
type | optional | text, delay_ms (0–1000) | {} |
clear | required | – | {} |
press | optional | key (Enter, Control+A, a single character…) | {} |
select | required | values or labels (list) | {selected} |
check | required | – | {} |
uncheck | required | – | {} |
scroll_into_view | required | – | {} |
scroll_by | – | x, y (pixels) | {} |
drag_to | required | target (a locator) | {} |
highlight | required | – | {count} (outlines up to 50 matches for 2 s) |
Without a locator, type and press go to the focused element. Values typed into password or
secret-looking fields are never written to logs.
Waiting
| Action | Locator | Params | Result |
|---|---|---|---|
wait_for | required | state: visible (default), hidden, attached, detached | {} |
wait_for_url | – | pattern: a glob, re:<regex>, or a plain substring | {url} |
wait_for_load | – | wait_until (load default) | {} |
wait_for_text | – | text | {} |
wait_for_response | – | url_pattern, status?, trigger? | {url, status} |
Reading
| Action | Locator | Params | Result |
|---|---|---|---|
text | optional | all (bool: every match as a list) | {value} (no locator: the page's text) |
inner_html | optional | – | {value} (no locator: the page's HTML) |
attribute | required | name | {value} |
value | required | – | {value} |
selected_values | required | – | {value} (list) |
count | required | – | {value} (number) |
is_visible | required | – | {value} (bool) |
is_enabled | required | – | {value} (bool) |
is_checked | required | – | {value} (bool) |
extract | optional | fields {name: {selector, attr?}} (1–50), item, limit (default 500, max 5000) | {items, count} |
table | required | – (the locator is the table) | {headers, rows} |
links | optional | limit (default 500, max 5000) | {links: [{text, href}], count} |
screenshot | optional | full_page, name | {file, bytes} (element screenshot with a locator) |
save_content | – | name | {file, bytes} (the page's HTML) |
extract with item returns one object per repeated element (for example a result card); a field's
selector is looked up inside it, ":scope" means the element itself, and attr reads an attribute
instead of the text.
{"action": "extract", "params": {"item": ".result", "limit": 20,
"fields": {"title": {"selector": "h3"}, "url": {"selector": "a", "attr": "href"}}}}Files
| Action | Locator | Params | Result |
|---|---|---|---|
upload | required | files (1–20 paths) | {files} |
expect_download | – | trigger (an action object), save_as? | {file, bytes, suggested} |
{"action": "expect_download", "params": {"trigger": {"action": "click", "locator": {"text": "Export CSV"}},
"save_as": "reports/export.csv"}}Files live in Quin's automation workspace (automation\workspace inside Quin's data folder) or in
folders approved in RPA Plus → Settings (approved:<n>/name). Paths are relative; absolute paths,
.., drive letters, network shares, alternate data streams and reserved names are refused
(file_not_allowed). Screenshots and saved pages taken through the API go to api/<session id>/
in the workspace. Download one with GET /api/v1/files/{file} (scope browser:control), using the
file value from the result.
Tabs and page
| Action | Locator | Params | Result |
|---|---|---|---|
new_tab | – | url? (http(s): or about:blank) | {tab, url} |
switch_tab | – | – (put the tab id in tab) | {tab, url} |
close_tab | – | – (tab picks it; the last tab → last_tab) | {} |
tabs | – | – | {tabs: [{tab, url, title, active}]} |
wait_for_popup | – | trigger | {tab, url} |
set_viewport | – | width (200–7680), height (200–4320) | {} |
dialog_policy | – | accept (bool), prompt_text? | {} |
Dialogs (alert, confirm, prompt) are dismissed by default; dialog_policy changes how the following
dialogs are answered.
A trigger is an action object such as {"action": "click", "locator": "#download"}; it cannot
itself be expect_download, wait_for_popup or wait_for_response.
Action error codes
| Code | Meaning |
|---|---|
timeout | Not done within timeout_ms — also an element that never appears |
ambiguous_locator | An acting action matched more than one element |
element_not_interactable | Not visible, disabled, covered, or the wrong kind of element |
navigation_failed | Network or navigation error |
target_closed | The page or browser was closed |
invalid_params | Bad parameters, a locator where none is allowed (or missing), a refused URL |
file_not_allowed | A path outside the workspace and approved folders |
tab_not_found | No open tab with that id |
last_tab | close_tab on the only tab |
download_failed | The download did not complete |
session_not_running | The session's browser is not running |
browser_error | Anything else (the message has details) |
An API action interrupted by a takeover or a close answers HTTP 409 taken_over instead of an
outcome. The SDKs raise action outcomes as ActionError.