Execute actions in the browser
Interact with the browser by executing a sequence of specific actions.
200+ apps to connect·Tested & maintained tasks·Human support in English & Spanish
In detail
What it does and what it's for
Already using Botize?
Connect your Google Chrome
Add a profile to use it in your tasks. There's a step-by-step guide if you need it.
Add a new profile Step-by-step guideYour profiles
Your connected Google Chrome accounts
These are the accounts you already have linked to Botize, ready to use in your tasks. You can reconnect or remove any of them.
Setup
Customization options
Fields you can adjust when using it in your automation.
Control Google Chrome from Botize by sending a recipe: a JSON list of steps that the extension will play in order on the connected tab.
This page documents the full recipe format: how to build one, every action available, and how elements are matched on the page.
Recipe format
A recipe is a JSON object with a single steps array:
{
"steps": [
{ "action": "navigate", "url": "https://example.com" },
{ "action": "click", "role": "button", "name": "Accept" }
]
}
Steps run sequentially. If any step fails, the recipe stops and reports the error back to Botize.
observe — get the resulting page state back automatically
An optional top-level observe key (sibling of steps) makes the recipe return a compact snapshot of what's actionable now once every step has run and the page has settled — so a recipe that only acts (e.g. a lone click) comes back self-describing instead of blind, with no separate get_aria_tree step or follow-up call. Especially handy for recipes driven by an AI assistant.
{
"observe": "interactive",
"steps": [
{ "action": "click", "role": "button", "name": "Menu" }
]
}
| Value | Meaning |
|---|---|
"interactive" | Snapshot of interactive elements only (buttons, links, inputs…), each with role + name + backendDOMNodeId. Hard-capped, so it stays small. |
"all" | Same but keeps the full filtered tree, not just interactive roles. |
omitted / "off" | No snapshot — unchanged behaviour. |
The snapshot is returned in the same Data from Browser output as get_aria_tree. If the recipe already contains an explicit get_aria_tree step, that wins and observe is ignored. It's best-effort: if the snapshot can't be captured it's silently skipped and never fails the job.
Recording a recipe
The fastest way to build a recipe is to record it:
- Open the Botize extension panel on the tab you want to automate (that Chrome must be connected to Botize).
- Click ● REC and perform the actions (click, type, navigate…).
- Click â– STOP to finish. The recording reaches Botize by itself.
- In the Chrome step of your task, press Teach the browser: the recipe is copied into the Actions field.
What you typed travels with the recording, so you can replace it with a tag of an earlier step (for example ). Password fields are never recorded. If the website changes, record again and press the button again.
How elements are matched
Actions that interact with the page (click, type, paste, key) locate elements using the ARIA accessibility tree, not CSS selectors. This makes recipes resilient to cosmetic HTML changes.
Each interactive step uses these fields to find its target:
| Field | Description |
|---|---|
role | The ARIA role of the element (button, link, textbox, checkbox…). |
name | The accessible name — usually the visible label or aria-label. |
nameStartsWith | (optional) Prefix match on the name. Useful when the name contains dynamic data (user names, counters, timestamps). When set, name is ignored. |
parentRole | (optional) Narrows the search to elements inside a specific parent role. |
parentName | (optional) Combined with parentRole, requires the parent to also match. |
nth | (optional) Zero-based index to pick the Nth match instead of the first. Use it when several elements share the same role and name — e.g. two unlabeled inputs in a login form: nth: 0 for the first, nth: 1 for the second. |
backendDOMNodeId | (optional) Skip ARIA matching entirely and act on this exact node id — the same id a query result or a get_aria_tree node reports. When set, role/name/etc. are ignored. |
When several elements match, the first one in document order wins — so on a list of followers, a click step with nameStartsWith: "Follow" will always target the first follower. Set nth to target a specific one.
backendDOMNodeId is only valid within the tab/session that produced it. It's a shortcut for reacting to a node you just saw in an earlier step of the same recipe (or the same live tab, for the extension backend) — not a stable identifier to store and reuse later. On the cloud/Lambda backend in particular, every recipe launches a brand-new headless browser: a backendDOMNodeId (or an assumption that the previous page is still loaded) from a prior call is meaningless in the next one. A recipe step with neither role nor backendDOMNodeId fails immediately with a clear error instead of hanging.
Navigation actions
navigate
Load a URL in the current tab and wait for it to finish loading.
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | yes | The URL to open. |
skip_if_same_domain | boolean | no | If the tab is already on the same domain as url (any page of it; a leading www. does not count), do nothing and go on with the next step. Extension 1.4.8 or later. |
{ "action": "navigate", "url": "https://example.com" }
skip_if_same_domain is for websites that move you to a page of their own on the first visit, where you must stay. For example, ChatGPT opens chatgpt.com/c/<id> when you send the first message, and the next runs have to write in that same conversation. The first run navigates (the tab is empty); the next ones find the tab on chatgpt.com/c/… and stay. Use it with a Tab name in the step, so every run gets the same tab. If that tab is closed, the next run starts again from url. In the cloud browser every run starts empty, so it always navigates.
{ "action": "navigate", "url": "https://chatgpt.com/", "skip_if_same_domain": true }
wait
Pause the recipe for a fixed amount of time.
| Parameter | Type | Required | Description |
|---|---|---|---|
ms | number | no | Milliseconds to wait. Default: 1000. |
{ "action": "wait", "ms": 2500 }
Interaction actions
click
Click on an element located via ARIA.
| Parameter | Type | Required | Description |
|---|---|---|---|
role | string | yes | ARIA role of the target. |
name | string | yes* | Accessible name. *Optional when using nameStartsWith. |
nameStartsWith | string | no | Prefix match for the name. |
parentRole | string | no | Restrict to a parent role. |
parentName | string | no | Restrict to a parent name. |
wait_for_navigation | boolean | no | If true, waits for the page to reload after the click. |
delay | number | no | Delay before executing the step, in ms. |
{ "action": "click", "role": "button", "name": "Add to cart" }
type
Type text into an input or textbox. The field must already have focus — usually preceded by a click step on the input.
| Parameter | Type | Required | Description |
|---|---|---|---|
role | string | yes | ARIA role of the input (textbox, searchbox, combobox…). |
name | string | yes | Accessible name of the input. |
text | string | yes | Text to type. \n = line break in multi-line fields (see below). |
append | boolean | no | If true, adds the text at the end of what the field already has. By default the field is emptied first. |
parentRole, parentName, nameStartsWith | no | Same matching fields as click. |
{ "action": "type", "role": "searchbox", "name": "Search", "text": "botize" }
Line breaks (extension 1.4.15 or later, and the cloud browser). In a rich editor or a <textarea> (comment boxes, chats), each \n in text is typed as Shift+Enter: a new line, never Enter, which in many comment boxes would post. In a one-line field line breaks are dropped and the form is not sent.
{ "action": "type", "role": "textbox", "name": "Write a comment", "text": "First line\n\nThird line" }
paste
Paste as if from the clipboard: text (extension 1.4.20 or later, and the cloud browser) or a file (image, document…; extension only). The element is focused, never clicked, and receives a real paste event.
| Parameter | Type | Required | Description |
|---|---|---|---|
role, name, … | no, with text | Same matching fields as click. With text they are optional: without them the text goes to whatever has the focus. | |
text | string | one of the two | The text to paste, exactly as given (line breaks, tabs, indentation). |
file_url | string | one of the two | Public URL of the file to paste. Extension only. |
Code editors (Monaco, the editor of Google Apps Script and VS Code, CodeMirror, Google Docs…) keep pasted text byte for byte: no automatic indentation and no extra closing brackets, which type cannot avoid there because it presses each key. If the page does not take the paste event (a plain <input> or <textarea>), the text is inserted at the cursor, as a real paste would. A paste only replaces what is selected: to replace the whole content, press cmd+a with key first.
[
{ "action": "key", "role": "textbox", "nameStartsWith": "Editor content", "keys": "cmd+a" },
{ "action": "paste", "role": "textbox", "nameStartsWith": "Editor content", "text": "function main() {\n return 1;\n}\n" }
]
{
"action": "paste",
"role": "textbox",
"name": "Message",
"file_url": "https://cdn.example.com/photo.jpg"
}
key
(Extension 1.4.20 or later, and the cloud browser.) Press keys for real, as from the keyboard: the page receives normal key events.
| Parameter | Type | Required | Description |
|---|---|---|---|
keys | string | yes | One key or combination ("cmd+a", "Enter", "shift+Tab", "ctrl+shift+z"), or several separated by spaces, pressed in order ("Escape Tab Tab"). |
repeat | integer | no | Press the whole sequence N times (1–100). |
role, name, … | no | Same matching fields as click. If given, that element is focused first, without a click, so an earlier selection stays. Without them the keys go to whatever has the focus. |
Modifiers: cmd, ctrl, alt (or option), shift, meta. cmd is the system's shortcut key: Cmd on a Mac, Ctrl on Windows, Linux and in the cloud browser, so "cmd+a" selects everything on any computer. ctrl and meta are sent as they are. Keys: letters, digits, punctuation, Enter, Tab, Escape, Backspace, Delete, Insert, Space, Home, End, PageUp, PageDown, the arrows (ArrowUp or Up…) and F1–F12. An unknown name fails the step with the list of valid ones.
{ "action": "key", "keys": "Escape" }
Inspection actions
query
Inspect the ARIA tree to see what a matcher would select without performing any action. Useful when authoring a recipe to verify selectors before committing to a click/type/extract, or when debugging why an existing recipe stopped matching.
Read-only and side-effect-free: a query step never alters the page or the recipe state — it just reports what the matcher resolves to right now.
| Parameter | Type | Required | Description |
|---|---|---|---|
role | string | yes | ARIA role to look for. |
name | string | no | Accessible name. Empty/omitted means "match any name" — combined with role returns the first node of that role in document order. |
nameStartsWith | string | no | Prefix match for the name; takes precedence over name. |
parentRole, parentName | string | no | Same matching fields as click. |
limit | number | no | Max matches to return in matches array. Default 1 (only the first match in match). Set to e.g. 10 to inspect a list. |
label | string | no | Optional tag returned in the response, useful when a recipe contains several query steps. |
The response is appended to data.query (one entry per query step, in recipe order):
{
"label": null,
"match": {
"role": "gridcell",
"name": "Item label",
"backendDOMNodeId": 1234,
"children_count": 1,
"parent": { "role": "row", "name": "Item label" }
},
"total_matches": 3
}
When the matcher finds nothing, match is null, total_matches is 0, and a diagnostics payload is added with hints — count of nodes that have the role, count of nodes that match the name, and a sample of nodes with the role to help understand what is actually in the tree.
{
"match": null,
"total_matches": 0,
"diagnostics": {
"nodes_with_role": 8,
"nodes_with_matching_name": 0,
"sample_nodes_with_role": [
{ "role": "gridcell", "name": "First item..." },
{ "role": "gridcell", "name": "Second item..." }
]
}
}
{ "action": "query", "role": "gridcell", "name": "" }
Data extraction actions
Extraction actions populate the Data from Browser output returned to Botize. You can combine several in the same recipe.
get_aria_tree
Return the accessibility tree of the current page. Ideal for letting an AI understand the page structure.
| Parameter | Type | Default | Description |
|---|---|---|---|
filter | string | interactive | interactive keeps only actionable nodes (buttons, links, inputs…). all keeps everything. |
include_headings | boolean | false | Include heading nodes even in interactive mode. |
max_nodes | number | 500 | Hard cap to prevent huge payloads. |
{ "action": "get_aria_tree", "filter": "interactive", "include_headings": true }
get_landmark_text
Extract the visible text of the page grouped by ARIA landmark (main, navigation, banner, contentinfo, complementary, search, region). Best suited for product pages, articles and content-heavy pages.
| Parameter | Type | Default | Description |
|---|---|---|---|
sections | string[] | all | Limit the output to specific landmarks. |
include_links | boolean | false | Include the list of links inside each landmark. |
include_images | boolean | false | Include the list of images inside each landmark. |
{
"action": "get_landmark_text",
"sections": ["main"],
"include_links": true,
"include_images": true
}
extract_repeating_items
(Renamed from get_page_elements on 2026-07-07 — the old name read as "get all elements on the page", which repeatedly misled callers into expecting general page content instead of its actual, narrower job.)
Extract repeating items (search results, product cards, posts…) grouped by their semantic section and parent. It only picks up nodes whose ARIA role exactly matches item_role (default listitem, i.e. <li>) — it does not capture inputs, buttons, or standalone links that aren't part of a repeating list. If a page returns nothing, first run get_aria_tree to see what role its repeating content actually uses, then pass that as item_role (e.g. "article" for a blog, "row" for a table). For a single input/button/link, use get_aria_tree or get_landmark_text instead.
| Parameter | Type | Default | Description |
|---|---|---|---|
item_role | string | listitem | ARIA role of the items to extract. |
sections | string[] | all | Limit to specific landmarks. |
paths | string[] | — | Narrow the output to specific branches, e.g. "main > list_results". |
{ "action": "extract_repeating_items", "item_role": "listitem", "sections": ["main"] }
Each extracted item includes its text, outbound links and images.
screenshot
Capture a JPEG screenshot of the current tab.
| Parameter | Type | Default | Description |
|---|---|---|---|
full_page | boolean | false | If true, captures the full scrollable page instead of just the viewport. |
max_width | number | — | Downscale the capture so its width is at most this many pixels (keeps aspect ratio). Omit for original size. |
quality | number | 75 | JPEG quality, 10–100. Lower means a lighter file. |
{ "action": "screenshot", "max_width": 1024, "quality": 40 }
Lower resolution/quality makes captures lighter and faster — ideal when an AI assistant reads the screen rather than a person keeping the image. Both max_width and quality can also be set once on the step (the Screenshot resolution / Screenshot quality fields of this action's form) so they apply to every screenshot in the recipe; a value on the action itself overrides that default.
The screenshot is returned in the Screenshot URL output.
extract
Extract a single value (text or image) from the page. Typically generated by clicking Extract on the recorder; manual use is uncommon.
| Parameter | Type | Description |
|---|---|---|
name | string | Name of the variable to store the value under. |
xpaths | string[] | XPath candidates. The extension picks the value confirmed by most paths. |
isImage | boolean | If true, extracts src instead of text. |
{ "action": "extract", "name": "price", "xpaths": ["//span[@data-price]"] }
If none of the paths finds anything, the value comes back empty (extension 1.4.13 or later): that page does not have that field, e.g. a product without a discount.
get_cookies
Return the cookies of the current tab. Read via the debugger protocol, so it also includes httpOnly cookies (session tokens) that document.cookie can't see. Mainly useful for capturing a login session to reuse in later HTTP calls.
| Parameter | Type | Default | Description |
|---|---|---|---|
names | string[] | all | Only return cookies whose name is in this list. Omit to return every cookie. |
The cookies are returned in the Data from Browser output under cookies, each as { name, value, domain, path, secure, httpOnly, expires }.
{ "action": "get_cookies", "names": ["JSESSIONID", "cd-token", "LB"] }
fetch
Make an HTTP request from inside the page open in the tab and get the response back: the way to read a site's own API (JSON) instead of its rendered page. It runs as the page's own JavaScript would, so it carries the page's origin, its cookies and the pass of any antibot check the tab already went through. Extension 1.4.12 or later, and the cloud browser.
Only to the site open in the tab, subdomains included: from www.shop.com you can call api.shop.com, not other.com. To call another site, navigate there first. On shared hosts (sharepoint.com, github.io, myshopify.com…) each customer's subdomain is a site of its own.
| Parameter | Type | Default | Description |
|---|---|---|---|
url | string | (required) | Absolute, or relative to the page (/api/items?page=2). |
method | string | GET | |
headers | object | — | Extra headers (accept, authorization, x-…). Headers the browser sets by itself (cookie, origin, referer, user-agent, sec-*…) can't be set: they are ignored and listed in ignored_headers. |
body | string or object | — | Text as is; an object is sent as JSON. Not allowed with GET or HEAD. |
credentials | string | same-origin | include also sends cookies to a subdomain, if that server allows it. |
as | string | auto | auto: parsed JSON when the response says it is JSON, else text. json: fails if it isn't JSON. text: always text. |
max_chars | number | 300000 | Up to 1000000. A longer response is cut, comes back as text with truncated_from, and is not parsed as JSON. |
timeout_ms | number | 30000 | |
label | string | — | Copied to the result, to tell several fetch steps apart. |
strip_css | boolean | false | HTML pages: removes <style> blocks, style sheet links and style="…" attributes. |
strip_svg | boolean | false | HTML pages: empties each drawing (<svg>). |
strip_comments | boolean | false | HTML pages: removes <!-- comments -->. |
strip_event_handlers | boolean | false | HTML pages: removes on… attributes (onclick…). |
strip_scripts | boolean | false | HTML pages: removes the scripts of code. A script with JSON data (application/ld+json, application/json…) stays. Extension 1.4.17 or later. |
Each fetch adds an entry, in order, to fetch in the Data from Browser output: { label, url, status, ok, content_type, json or text }, plus truncated_from if it was cut and stripped_from if it was thinned. An HTTP error (404, 500…) does not stop the recipe: it comes back with its status. The step fails on a network error, a request blocked by the site's security rules, a timeout, another site, or a tab with no website open. Text only: it does not download files such as PDFs. A POST does whatever that API does (it can create or change things).
Thinning an HTML page (strip_*, extension 1.4.14 or later, and the cloud browser). A shop page can be millions of characters, mostly styles and drawings, so the data at its end falls past max_chars. The strip_* options clean the page before the cut, and never touch data: scripts, templates and data-* attributes stay as they are, and a drawing or comment with JSON inside stays whole. They do nothing on a JSON response.
{ "steps": [
{ "action": "navigate", "url": "https://shop.example.com/" },
{ "action": "fetch", "url": "/wp-json/wc/store/v1/products?per_page=100", "label": "products" }
] }
get_html
The HTML of the page as it is painted in the tab, after its JavaScript has run (what the person sees), of the parts that some XPath expressions find. fetch asks the server for a new copy, which may differ (a redirect, products that the page draws later); get_html reads the tab. It only reads. Extension 1.4.16 or later, and the cloud browser.
Before reading it waits for the page to stay still: every 0.6 s it counts the page's elements and what each XPath finds, and reads when three readings in a row are equal, or when settle_ms runs out (then settled is false).
| Parameter | Type | Default | Description |
|---|---|---|---|
xpaths | string[] | (required) | 1 to 20 XPath 1.0 expressions, e.g. ["//body"] or ["//div[contains(@class,'card')]"]. |
max_matches | number | 50 | Parts returned per XPath, up to 500. |
max_chars | number | 300000 | Characters for the whole step, up to 1000000, shared in order: the first XPath first, then the next with what is left. |
skip_nested | boolean | true | A part inside another part already returned is not returned again (its HTML would repeat). |
settle_ms | number | 8000 | Longest wait for the page to stay still, up to 30000. 0 reads at once. |
strip_css, strip_svg, strip_comments, strip_event_handlers, strip_scripts | boolean | false | The same cleaning as fetch. To read a whole shop page (/html), strip_scripts is the one that saves most. |
label | string | — | Copied to the result. |
Each get_html adds an entry to get_html in the Data from Browser output: { label, url, base_url, title, settled, chars, results }, with one item in results per XPath: { xpath, count, returned, html: [ … ], chars, truncated }. count is how many parts it found and returned how many came back in html; truncated says some were left out (by max_matches or max_chars). Resolve relative links against base_url. An XPath that is not valid gives an error in its item and the step goes on; one that finds nothing gives count: 0. XPath does not enter iframes nor shadow DOM.
{ "action": "get_html", "label": "cards", "xpaths": ["//div[contains(@class,'card')]"], "strip_css": true, "strip_svg": true }
scroll
Moves the page down screen by screen so pages that load more as you go down (product lists, infinite feeds) draw it. Then read it with get_html. Extension 1.4.16 or later, and the cloud browser.
| Parameter | Type | Default | Description |
|---|---|---|---|
to | string | bottom | bottom: down until the page stops growing. top: back to the start. |
screens | number | — | Exactly this many screens down instead (1–100). |
max_screens | number | 30 | Most screens for to: "bottom", up to 100. |
pause_ms | number | 800 | Wait after each screen for the page to load. |
It adds { screens, height_from, height_to, at_bottom } to scroll in the output. A recipe has 75 seconds in the extension: 30 screens with 0.8 s each take 24 of them.
{ "steps": [
{ "action": "navigate", "url": "https://shop.example.com/offers" },
{ "action": "scroll", "max_screens": 15 },
{ "action": "get_html", "xpaths": ["//div[contains(@class,'card')]"], "strip_css": true }
] }
Example: capture a login session
{
"steps": [
{ "action": "navigate", "url": "https://example.com/login" },
{ "action": "type", "role": "textbox", "name": "User", "text": "me@example.com" },
{ "action": "type", "role": "textbox", "name": "Password", "text": "••••••" },
{ "action": "click", "role": "button", "name": "Sign in", "wait_for_navigation": true },
{ "action": "get_cookies" }
]
}
Example: product page scrape
{
"steps": [
{ "action": "navigate", "url": "https://example-shop.com/product/123" },
{
"action": "get_landmark_text",
"sections": ["main"],
"include_images": true
},
{ "action": "screenshot" }
]
}
Example: click the first follow-back button on X
{
"steps": [
{ "action": "navigate", "url": "https://x.com/your-handle/followers" },
{
"action": "click",
"role": "button",
"nameStartsWith": "Follow back",
"parentRole": "generic",
"parentName": "Follow back"
}
]
}
Output data
Information provided
When executed, this operation delivers the following data, which can be used in the same automatic task.
Tags
-
URL
{{url}}
URL
-
Data from Browser
{{browser_data}}
Data from Browser
-
Screenshot URL
{{screenshot_url}}
Public URL of the screenshot taken by the browser (if a screenshot action was included in the recipe)
-
Status Code
{{status_code}}
Status Code
Learn by watching
Video tutorials
Short videos where you watch a real task being built from start to finish.
Get inspired
Ready-to-use automations
Real tasks built with Google Chrome: switch them on in minutes and tweak them to your liking.
Need a hand?
Real people behind it
Email us
info@botize.com
Monday to Friday from 7 a.m. to 1 p.m. (Spain).
Message us on Telegram
t.me/botizesupport
Monday to Friday from 7 a.m. to 1 p.m. (Spain).
Come with an idea.
Leave with an automation.
Create your first task in minutes. Do it once and forget about it forever.
Start automating