Apps/Google Chrome/Execute actions in the browser
Google Chrome
Google Chrome Action

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 guide

Your 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" }
  ]
}
ValueMeaning
"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:

  1. Open the Botize extension panel on the tab you want to automate (that Chrome must be connected to Botize).
  2. Click ● REC and perform the actions (click, type, navigate…).
  3. Click â–  STOP to finish. The recording reaches Botize by itself.
  4. 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:

FieldDescription
roleThe ARIA role of the element (button, link, textbox, checkbox…).
nameThe 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.

ParameterTypeRequiredDescription
urlstringyesThe URL to open.
skip_if_same_domainbooleannoIf 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.

ParameterTypeRequiredDescription
msnumbernoMilliseconds to wait. Default: 1000.
{ "action": "wait", "ms": 2500 }

Interaction actions

click

Click on an element located via ARIA.

ParameterTypeRequiredDescription
rolestringyesARIA role of the target.
namestringyes*Accessible name. *Optional when using nameStartsWith.
nameStartsWithstringnoPrefix match for the name.
parentRolestringnoRestrict to a parent role.
parentNamestringnoRestrict to a parent name.
wait_for_navigationbooleannoIf true, waits for the page to reload after the click.
delaynumbernoDelay 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.

ParameterTypeRequiredDescription
rolestringyesARIA role of the input (textbox, searchbox, combobox…).
namestringyesAccessible name of the input.
textstringyesText to type. \n = line break in multi-line fields (see below).
appendbooleannoIf true, adds the text at the end of what the field already has. By default the field is emptied first.
parentRole, parentName, nameStartsWithnoSame 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.

ParameterTypeRequiredDescription
role, name, …no, with textSame matching fields as click. With text they are optional: without them the text goes to whatever has the focus.
textstringone of the twoThe text to paste, exactly as given (line breaks, tabs, indentation).
file_urlstringone of the twoPublic 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.

ParameterTypeRequiredDescription
keysstringyesOne key or combination ("cmd+a", "Enter", "shift+Tab", "ctrl+shift+z"), or several separated by spaces, pressed in order ("Escape Tab Tab").
repeatintegernoPress the whole sequence N times (1–100).
role, name, …noSame 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.

ParameterTypeRequiredDescription
rolestringyesARIA role to look for.
namestringnoAccessible name. Empty/omitted means "match any name" — combined with role returns the first node of that role in document order.
nameStartsWithstringnoPrefix match for the name; takes precedence over name.
parentRole, parentNamestringnoSame matching fields as click.
limitnumbernoMax matches to return in matches array. Default 1 (only the first match in match). Set to e.g. 10 to inspect a list.
labelstringnoOptional 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.

ParameterTypeDefaultDescription
filterstringinteractiveinteractive keeps only actionable nodes (buttons, links, inputs…). all keeps everything.
include_headingsbooleanfalseInclude heading nodes even in interactive mode.
max_nodesnumber500Hard 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.

ParameterTypeDefaultDescription
sectionsstring[]allLimit the output to specific landmarks.
include_linksbooleanfalseInclude the list of links inside each landmark.
include_imagesbooleanfalseInclude 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.

ParameterTypeDefaultDescription
item_rolestringlistitemARIA role of the items to extract.
sectionsstring[]allLimit to specific landmarks.
pathsstring[]—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.

ParameterTypeDefaultDescription
full_pagebooleanfalseIf true, captures the full scrollable page instead of just the viewport.
max_widthnumber—Downscale the capture so its width is at most this many pixels (keeps aspect ratio). Omit for original size.
qualitynumber75JPEG 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.

ParameterTypeDescription
namestringName of the variable to store the value under.
xpathsstring[]XPath candidates. The extension picks the value confirmed by most paths.
isImagebooleanIf 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.

ParameterTypeDefaultDescription
namesstring[]allOnly 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.

ParameterTypeDefaultDescription
urlstring(required)Absolute, or relative to the page (/api/items?page=2).
methodstringGET
headersobject—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.
bodystring or object—Text as is; an object is sent as JSON. Not allowed with GET or HEAD.
credentialsstringsame-origininclude also sends cookies to a subdomain, if that server allows it.
asstringautoauto: parsed JSON when the response says it is JSON, else text. json: fails if it isn't JSON. text: always text.
max_charsnumber300000Up to 1000000. A longer response is cut, comes back as text with truncated_from, and is not parsed as JSON.
timeout_msnumber30000
labelstring—Copied to the result, to tell several fetch steps apart.
strip_cssbooleanfalseHTML pages: removes <style> blocks, style sheet links and style="…" attributes.
strip_svgbooleanfalseHTML pages: empties each drawing (<svg>).
strip_commentsbooleanfalseHTML pages: removes <!-- comments -->.
strip_event_handlersbooleanfalseHTML pages: removes on… attributes (onclick…).
strip_scriptsbooleanfalseHTML 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).

ParameterTypeDefaultDescription
xpathsstring[](required)1 to 20 XPath 1.0 expressions, e.g. ["//body"] or ["//div[contains(@class,'card')]"].
max_matchesnumber50Parts returned per XPath, up to 500.
max_charsnumber300000Characters for the whole step, up to 1000000, shared in order: the first XPath first, then the next with what is left.
skip_nestedbooleantrueA part inside another part already returned is not returned again (its HTML would repeat).
settle_msnumber8000Longest wait for the page to stay still, up to 30000. 0 reads at once.
strip_css, strip_svg, strip_comments, strip_event_handlers, strip_scriptsbooleanfalseThe same cleaning as fetch. To read a whole shop page (/html), strip_scripts is the one that saves most.
labelstring—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.

ParameterTypeDefaultDescription
tostringbottombottom: down until the page stops growing. top: back to the start.
screensnumber—Exactly this many screens down instead (1–100).
max_screensnumber30Most screens for to: "bottom", up to 100.
pause_msnumber800Wait 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.

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