Browser extension — capture, mock and record right in your browser
The Mockarty extension turns the browser you already debug in into a capture
tool, a mocking proxy and a UI-test recorder. It works without an account:
install it, press record, and everything stays local until you decide to send it
to Mockarty.
Install
On the Downloads page, find Mockarty Capture. In desktop Chrome, use the Chrome Web Store button. If a ZIP archive is available, you can install it manually using the steps below.
From the Chrome Web Store:
- Open Mockarty Capture.
- Select Add to Chrome and review the permissions in the browser dialog.
- Pin Mockarty Capture to your toolbar and open its side panel.
From a ZIP archive:
- Download and unzip the archive. Keep the folder: the browser loads the extension from it every time it starts.
- Open
chrome://extensions, enable Developer mode, select Load unpacked, then choose the folder. - Pin Mockarty Capture to the toolbar and open its side panel.
Chrome does not update unpacked extensions automatically.
When updating an unpacked installation, replace the files in its existing folder, keep the same browser profile and use Reload on its existing Chrome extension card. Loading a different folder can create a separate installation with its own connection state. If the expected connection or recovery control is missing, return to the original installation before creating another key.
Works in Chrome, Edge, Brave and other Chromium browsers.
To use this browser for saved tests, connect the extension in Hub and follow the browser runner setup.
Section help is available through the ? button beside a heading: hover, focus or click to read it, and press Escape to close. Changing language keeps the controls and current selection in place.
Required and optional permissions
At installation, the extension requests storage, tabs, alarms,
sidePanel, declarativeNetRequest and debugger. Chrome does not support
debugger as an optional permission. The extension attaches it to a tab only
when you explicitly enable a feature that needs it, such as response-body
capture, breakpoints or chaos.
Traffic capture, page snapshots, file export, notifications, session pairing
and redirect enforcement also use optional permissions that Chrome asks
for when you first use the feature. If you deny one, the affected feature is
unavailable and the panel explains why. It does not fall back to reading every
tab. There is no all-sites guarantee: capture on a site requires the optional
webRequest permission and host access.
To use the extension as a UI runner, list the allowed sites in Hub
before enabling it. Chrome requests access to those hosts. For a local test,
enter the complete origin, such as http://127.0.0.1:5780. Mockarty also
checks the port on each job. A blank list requests access to every site.
After changing the list, switch the runner off and on to grant access to
new sites.
Connection and workspace
The connection card shows the workspace verified by the server. Selecting another workspace prepares a change; Connect namespace asks for confirmation before connecting it. If the workspace list is unavailable, a known current target stays selectable for an explicit repair. This does not verify access or change the active connection.
If a connection request has an unknown outcome, use Recover pending connection. Keep the existing installation and browser profile; do not clear extension storage or create another key to retry. Recovery uses the saved request when it remains valid. If recovery is unavailable, review access through Manage server access.
Capture traffic
Open the panel and press Start. Every request the page makes is recorded
with method, URL, status, timing, headers and bodies — including WebSocket
frames in both directions.
- Recording works offline. Captures live in the browser until you send them.
- Secrets are stripped as they are recorded — tokens, cookies, password
fields and configured JSON paths never reach storage in clear text. - Press Stop when done, or use the keyboard:
Alt+Shift+C.
Each capture can be turned into:
- a Postman collection, a HAR file or a cURL command — no server needed;
- mocks in Mockarty — select the requests and press Create mocks from selection;
- a recorded session in Mockarty, if you are connected.
Mock and modify requests
The Rules section intercepts requests before they leave the browser:
| Rule | What it does |
|---|---|
| Mock | Answers with your response, without the server |
| Block | Fails the request (test your error paths) |
| Modify request | Rewrites headers, query or body on the way out |
| Modify response | Rewrites what the page receives |
| Redirect | Sends the request somewhere else |
| Chaos | Adds latency, errors, throttling, truncated bodies |
| Breakpoint | Pauses the request so you can inspect or edit it |
Rules match by URL pattern, method and — for GraphQL — operation name. Responses
support templating: {{faker.email}}, values taken from the request, and
sequential counters.
Bring your existing mocks down from Mockarty. If your team already built
mocks on the server, press Pull from Mockarty — they become local rules and
start answering in your browser immediately. Pulling again updates those rules
instead of duplicating them.
Alt+Shift+R switches all interception off and on — the “make this page normal
again” button.
Record a UI test
On the Captures tab, press Record in the Record card and use the page
normally. Clicks, typing and navigation are recorded with stable selectors (roles
and accessible names first, generated ids avoided).
Right-click any element while recording to add a check: visible, hidden, text,
input value, attribute, count or page URL. The same menu also records a wait for
an element or URL, a right-click, a hover and a screenshot. Stop & save keeps
the flow; Cancel discards it.
When you are done, the saved scenario offers:
- Playwright — copies and downloads a ready
.spec.tsyou can run anywhere; - To Mockarty — saves it as a UI test you can schedule, run on a fleet and
attach to a test case.
Recovered Agent answers and restored conversations keep their action buttons.
After reopening a conversation, the extension checks whether those exact page actions were already sent. An already-sent action stays disabled. Check its recorded status and the page before asking for a new action. Actions saved by older versions may remain disabled because their previous outcome cannot be verified. Ask the Agent for new steps. If another panel changes the preview while you are confirming it, check a new preview before trying again.
Local steps completed means the extension verified the resulting fields in the same page document; it does not confirm a purchase, submission or other server-side result. If verification is unavailable, or an action clicked or submitted something, its outcome stays unknown. Reopening the panel does not repeat the action. Unresolved actions remain protected; when their history is full, new actions pause instead of silently dropping earlier outcomes.
If a macro cannot start because no web page is available, open the intended page before starting it again. If execution was sent but its result is unconfirmed, inspect the page and recorded status before requesting another action; the extension does not repeat it automatically.
If a tab is already in use by a debugger, the extension refuses to take it over. Finish that debugging session before requesting a new action plan. Browser replay does not mark an unexecuted visual, accessibility or performance validation as successful; a check requiring another test engine stops the replay with an explanation.
Consecutive messages by the same author share one author heading and avatar; each keeps its own timestamp. If a server cannot negotiate pairing for the selected workspace, update that server before connecting; the extension does not request an API key in this case.
The Agent starts in manual mode. Review the human-readable steps and confirm them before they run. To continue with ordinary local steps in the same conversation, choose Execute and continue automatically after reviewing the first plan. Automatic mode lasts at most 30 minutes and may end sooner when site access expires. It stays with this panel, conversation and page; it does not grant access to another site or tab.
Automatic mode pauses for steps that need a separate approval or cannot be verified locally. Passwords, one-time codes and payment credentials must be entered by a person. Stop, an unknown result, reopening the panel, changing the page or connection, or losing site access returns the Agent to manual mode. Already-sent actions are never repeated automatically. Turning automatic mode off prevents later steps; it does not undo a step that already reached the page.
For manual steps, review and confirm them before they run. For these steps, Chrome host
access is requested for the selected site; replay also uses Chrome’s navigation
permission. A browser permission does not replace confirmation of the action.
When the Agent proposes a browser rule, Save locally becomes available after the answer is saved. Saved confirms that the rule is in your browser; rule loaded confirms its Chrome configuration is loaded, not that a website request has already been intercepted. Open Captures → Rules & interception to check interception and site access, then reload the page if needed. If saving has an unknown result or the rule was edited, the extension checks the existing rule and does not silently save a replacement.
Stopping a replay does not undo a request already sent to a website. If the result is missing or the connection closes, check the operation on the website before running it again.
New browser actions may pause if earlier actions have no verified final outcome, even when a website appears finished. Reopening the panel does not clear this protection. A failed or timed-out answer check does not resend your question to the model.
Changing account, model or conversation while confirming browser steps stops that pending launch. If the steps were already sent, changing conversation does not undo them; their result is not shown as a new notification in the other conversation.
Recording status
Start a recording from the Record card on Captures, or with Record
macro on Collections — both drive the same recorder. While it records, the
button reads Stop & save, which asks for a name and stores the scenario;
Cancel discards it. If there are no steps to save, recording stays active so
you can continue or cancel.
A missing reply does not mean a scenario was saved or cancelled. The extension checks the current recording state. If delivery of UI steps to Mockarty is unconfirmed, automatic upload pauses and the local steps remain visible. Steps queued for another connection are not sent to the new account automatically. Check the recording in Mockarty before explicitly clearing local steps; clearing them cannot cancel work already received by the server.
Audit a page
The Audit tab runs accessibility and performance checks on the current page
and keeps a short history, so you can see whether a change made things better.
No server required.
Choose an earlier audit from the recent list to view and download that exact report. Changing the panel language updates the selected report without running the page audit again. The Markdown report keeps the stored audit time; CLS is a dimensionless score, while time metrics use milliseconds.
Connect to Mockarty
Everything above works standalone. Connecting adds: sending captures and tests
to your project, pulling mocks, seeing runs and notifications, and using the
browser as a UI-test runner for your team (see
Run UI tests in your browser).
Choose the server on the Hub tab. Expand the connection card (its header
shows Not connected). Find Desktop looks for a Desktop app or a local
server, and Mockarty Cloud fills https://beta.mockarty.ru. The Cloud button
saves the address draft and clears any pasted token; it does not send credentials
or connect automatically. Continue with your browser session, the pairing page,
or a token for the selected server. You can also enter another server URL.
Before the first connection, choose Workspace. Use workspace from open Mockarty tab uses the workspace shown in an open, regular Mockarty tab on the selected server; review its identifier in the expanded details. You can also enter a workspace identifier there, or keep the server default. This choice is a draft, not a connection or permission grant. It stays available after signing in and reopening the panel; connecting uses that workspace from the first request. Changing servers clears the previous workspace draft.
After connecting, the Hub shortcut Fuzzing opens Testing → Fuzzing in the selected workspace. Mockarty checks your access when opening the page.
Use the server’s final address. Requests that use your Mockarty credentials do not follow redirects. If the server address has changed, update the connection address explicitly. After an operation fails, check its result before submitting it again.
Three ways to connect:
- Use my Mockarty session — if you are already signed in to Mockarty in
this browser, one click exchanges that session for a scoped token. - Pairing page — the extension opens the server’s Pair Mockarty Capture
page; review the account and workspace, then click Authorize Mockarty
Capture. - Manual token — paste an API token and the server URL.
Local discovery first asks a compatible Desktop app for its current local address, so changing the main port does not require typing it again. If a discovery port is occupied, Desktop tries the next port in its small discovery pool. Older Desktop versions can be found through an open local Mockarty tab, a recently used local address, or the standard Desktop port range. You can always enter the address manually. The extension verifies that the suggested address responds as Mockarty before offering it. It skips malformed or unrelated health replies and stops a stalled check. The same time limit covers receiving and reading each reply; closing a failed check cannot hold the search open. Discovery does not authenticate the instance or pair your account: continue through the pairing page before using the Agent.
You can edit the URL or choose another connection while discovery runs. A late result will not replace that choice. A current result fills the URL draft through the same saving path as typing; discovery alone does not add a server to the recent connection list.
A 403 response means the server refused access. Read the reported reason and check the account, Space, feature availability and permissions with an administrator. The status alone does not prove that the token is valid or that pairing again will solve the problem.
For the Agent view (Hub → Agent), connect through the pairing page so the
extension can verify your account and Space. Page sharing is off until you select
its permissions.
Changing the account, Space or model requires reviewing those permissions again;
old approvals are not transferred automatically. If the permission check refuses
a turn before sending, your question stays in the composer. Unknown send outcomes
must be reconciled before trying the operation again. Older local conversation
records are retained but are not automatically attributed to a newly paired account.
While a page action is being prepared or confirmed, another action cannot start in the same panel. The action row accepts only the result of its own run. If the result is lost or a step fails after earlier steps, that button stays disabled so the same action is not repeated. Check the page before requesting a new action.
A streamed turn can ask you to approve or decline a tool batch. That decision belongs to its original account, Space and turn. A received decision can still be waiting for delivery to the server that owns the conversation. Confirmation of the decision does not mean the tools have completed. If the decision’s outcome is unknown, its buttons stay disabled, including after reopening the panel; check the same conversation in Mockarty before continuing.
Before you decide, tool argument previews mask credential fields, labelled secrets and URL credentials. Invalid JSON is shown as an unavailable preview. If the shared redactor cannot load, the decision buttons stay disabled.
Quick actions fill the current draft without sending it. They stay disabled during an active turn or result recovery; the selected prompt uses the same draft saving and send checks as text you type.
Cloud connection indicators use readable labels; exact account and Space identifiers remain in the Hub connection details. If the server refuses an AI request because of credits, a spending limit or missing cost configuration, the panel explains that reason. Re-pairing does not resolve a budget refusal: check the Space’s Cloud balance or contact its administrator. The extension does not pay or send the request again automatically.
Your messages appear in bubbles on the right; Agent replies appear on the left. Small icons distinguish the authors, with text labels available to screen readers. Markdown headings, lists and tables remain readable. Code blocks and JSON-only replies have an expandable preview: open the block to copy or save its content. Long blocks start collapsed. Saved JSON uses .json; other code is saved as .txt, including HTML and scripts. This saves the displayed text locally; it does not retrieve a file attachment from the server.
Changing the panel language preserves the displayed connection and page-sharing state; it does not reconnect or send the page again. Chat quick-action buttons and the current turn status update in place too.
During a streamed reply, each tool shows its own status and expandable output. Errors are shown as errors; if no result arrived, the outcome remains unknown. Opening output does not run it as a page action. Tool details are saved with the local conversation. Recovery also reads them when they are present in the exact saved server answer. Preview size is limited: an output that does not fit is marked unavailable rather than saved or downloaded as a truncated file. Tool arguments are not included in this preview history.
In the Hub team chat, use Load attachment to request an image or audio preview and Download attachment to save a complete file. These controls use the account paired with that conversation. Switching connection or leaving the conversation stops active transfers. Changing the panel language updates these controls without reloading the displayed media. Dates and relative times in the open Hub chat follow the selected panel language too, while your draft and queued files remain in place. A server that redirects attachments to external storage may refuse this download; credentials are never forwarded to that storage.
Unsent Hub text and queued files belong to the current chat. Choosing a different chat clears them; changing the paired account also clears the previous chat view. Leaving a chat or closing the Hub stops voice recording, and a late microphone permission cannot attach audio to a different chat. A message already sent is not undone by switching chats, and its late response does not replace the new chat’s draft or messages.
After reopening an Agent conversation, the saved tool approval appears as a read-only status. The extension checks the original decision receipt and does not send the decision again. If the receipt is unavailable, the status stays unavailable or unknown. Adding later messages does not hide the saved status: it stays beside the corresponding messages while they remain in local history.
While the conversation is loading, the message field is read-only. It becomes editable when the current conversation is ready. Switching accounts or workspaces does not restore the previous account’s draft into the new conversation.
Regular and Incognito Agent conversations, drafts, queued questions and selected pages are kept separate. An Incognito window does not restore the normal window’s conversation or older local transcript. If the browser cannot verify the window, the Agent keeps history and sending unavailable.
For a private workspace, enable Allow in Incognito for Mockarty in Chrome’s extension settings, then open Mockarty with its extension toolbar button. If the browser cannot confirm the panel, sending and result checks stay unavailable and your question remains in the composer. Close the Mockarty panel and reopen it with the toolbar button. If verification still fails, close the other Mockarty panels and private windows, then reopen one regular workspace.
In Incognito, you can chat without sharing the page. Sharing page content and controlling browser tabs are unavailable there; use a regular window for those actions. Selecting them in a private window does not grant access.
If the safety log fills with unconfirmed action outcomes, new requests are blocked
and your question stays in the composer. Reloading does not clear these records.
Use Check pending result in the Hub → Agent view to look up an interrupted
request in the current conversation. The check reads that request’s saved result; it
does not send the request again. If no answer was previously confirmed and the saved result has expired or is
unavailable after a server restart, the outcome stays unconfirmed. An answer
already received stays recorded as such even if its saved text is unavailable.
If saving a recovered answer locally fails, check again; the extension can read
the same available answer without sending the request again. Older records without
an exact request reference cannot be matched to another conversation answer.
An interrupted answer stays partial or has an unknown outcome; it does not
confirm that a requested operation succeeded. Provider failures and policy or
budget refusals appear as errors. An approval request remains a request for
your decision, not a completed action.
If a selected tab has changed address before page reading starts, that source
is marked stale. Select the intended page again before sharing its context.
The context chip shows partial reading, a changed or closed page, and access or
reading failures even when you selected only one page.
Page reading is bound to the selected document; a replacement during reading
is discarded. If the browser cannot confirm document identity, page content
is unavailable for that capture.
Screenshot attachments in the Agent chat are unavailable. The screenshot
control explains this limitation without taking a screenshot or requesting
extra browser permissions.
Stop during preparation prevents an unsent request from leaving the browser.
Send and result recovery become available after the pending operation finishes
cleaning up; the question stays in the draft if it was not sent.
For a request already sent, cancellation does not roll back completed actions.
Shortcuts
| Shortcut | Action |
|---|---|
Alt+Shift+M |
Open the Mockarty panel |
Alt+Shift+C |
Start / stop capturing |
Alt+Shift+R |
Turn all interception rules off / on |
Rebind them at chrome://extensions/shortcuts.
Privacy and storage
- Captures, rules and recordings live in the browser’s local storage; nothing
leaves your machine until you send it. - Secrets are redacted at capture time.
- When the browser’s storage fills up, the oldest captures are dropped and the
panel tells you — capture keeps running. - Disconnect clears the token but keeps your local captures.
- Find Desktop sends health checks to local loopback addresses
to find a Desktop or development server when you press the button. This is
separate from uploading captured traffic to the server you configure. - The API token persists in this browser profile in
chrome.storage.local,
notchrome.storage.sync. Chrome documents this storage as unencrypted,
and the extension adds no encryption layer. Protect your browser profile
and device, avoid shared profiles, and prefer a namespace-scoped token with
only the permissions you need that you can revoke in Mockarty. - Optional host access (
<all_urls>) can be requested when you start traffic
capture/interception, a page audit, macro recording/replay, or assistant UI
actions. Each feature requests the optional browser permissions it needs
after your action; installing the extension does not grant them. Chrome may
ask for access covering all sites, so review the request. Restricted pages,
denied/revoked grants and enterprise policy can prevent a feature from
running. There is no telemetry or remote code; captured traffic is sent only
to the Mockarty server you configure.
Known limits
- This is an unpacked build. Install it from the repository folder or from
the packaged zip as described above. There is no Chrome Web Store listing, so
Chrome shows the usual developer-mode notice and does not auto-update it. - No all-sites guarantee. If the optional
webRequestor host permission is
denied, blocked by enterprise policy or revoked, capture on that origin stops
and the panel reports the denial. - Chrome requires
debuggerto be declared at installation for response
bodies, breakpoints and chaos. It attaches to a tab only when you explicitly
enable a feature that needs it. - The Chrome debug banner is shown while the debugger is attached to a tab —
that is a browser requirement, not an extension overlay. - Large or streamed binary request bodies may not be fully captured by MV3.
- The extension targets Chrome, Edge, Brave and other Chromium browsers; it is
not a Firefox/Safari extension.
See also
Pairing failures
Pairing retries keep the original workspace lifetime. A busy challenge queue
returns HTTP429; a failed credential revocation does not report a successful
new pairing. Reconnect explicitly after a refused or expired pairing.
If the server reply is lost, Try again on the same pairing page checks the original request; it does not start a new authorization. If delivery to the extension fails, the same button resends the original result without creating another token. Older server/extension combinations cannot reconcile an unknown result: check the extension connection and your API tokens before opening a new pairing. Closing the page or changing the account or Space ends these in-page retries.