Browser actions

The 50 browser actions of the Quin Local API — request format, locators, parameters, results and action error codes.

Local APIÁp dụng cho Quin Camoufox 0.7Cập nhật 2 tháng 11, 2026

Trang này chưa có bản tiếng Việt. Nội dung tiếng Anh được hiển thị bên dưới.

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

JSON
{"action": "click", "tab": "t1", "locator": {"role": "button", "name": "Save"}, "params": {}, "timeout_ms": 15000}
FieldNotes
actionOne of the 50 names below (GET /status lists them in automation.actions)
tabOptional tab id (t1, t2, …); default the active tab. Ids are stable per session and never reused
locatorA locator object, or a string (a CSS selector)
paramsThe action's parameters; unknown keys are refused
timeout_msDefault 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

JSON
{"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.

ActionLocatorParamsResult
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

ActionLocatorParamsResult
clickrequiredmodifiers (Alt, Control, Meta, Shift), position {x, y}, force{}
dblclickrequiredsame as click{}
right_clickrequiredsame as click{}
hoverrequired–{}
focusrequired–{}
fillrequiredvalue{}
typeoptionaltext, delay_ms (0–1000){}
clearrequired–{}
pressoptionalkey (Enter, Control+A, a single character…){}
selectrequiredvalues or labels (list){selected}
checkrequired–{}
uncheckrequired–{}
scroll_into_viewrequired–{}
scroll_by–x, y (pixels){}
drag_torequiredtarget (a locator){}
highlightrequired–{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

ActionLocatorParamsResult
wait_forrequiredstate: 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

ActionLocatorParamsResult
textoptionalall (bool: every match as a list){value} (no locator: the page's text)
inner_htmloptional–{value} (no locator: the page's HTML)
attributerequiredname{value}
valuerequired–{value}
selected_valuesrequired–{value} (list)
countrequired–{value} (number)
is_visiblerequired–{value} (bool)
is_enabledrequired–{value} (bool)
is_checkedrequired–{value} (bool)
extractoptionalfields {name: {selector, attr?}} (1–50), item, limit (default 500, max 5000){items, count}
tablerequired– (the locator is the table){headers, rows}
linksoptionallimit (default 500, max 5000){links: [{text, href}], count}
screenshotoptionalfull_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.

JSON
{"action": "extract", "params": {"item": ".result", "limit": 20,
  "fields": {"title": {"selector": "h3"}, "url": {"selector": "a", "attr": "href"}}}}

Files

ActionLocatorParamsResult
uploadrequiredfiles (1–20 paths){files}
expect_download–trigger (an action object), save_as?{file, bytes, suggested}
JSON
{"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

ActionLocatorParamsResult
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

CodeMeaning
timeoutNot done within timeout_ms — also an element that never appears
ambiguous_locatorAn acting action matched more than one element
element_not_interactableNot visible, disabled, covered, or the wrong kind of element
navigation_failedNetwork or navigation error
target_closedThe page or browser was closed
invalid_paramsBad parameters, a locator where none is allowed (or missing), a refused URL
file_not_allowedA path outside the workspace and approved folders
tab_not_foundNo open tab with that id
last_tabclose_tab on the only tab
download_failedThe download did not complete
session_not_runningThe session's browser is not running
browser_errorAnything 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.