Skip to Content
KubeSense

Browser Recorder

The KubeSense Synthetics Recorder is a Chrome and Edge extension that records a user journey in your browser, with its checks, as the steps of a browser test. Use the site as a customer would; the recorder writes each click, typed value, selection and key press as a step, and you right-click on the page to add what the test checks.

The recording stays in your browser until you send it to your KubeSense, copy it or download it.


Install

Install KubeSense Synthetics Recorder from the Chrome Web Store. It needs Chrome 116 or later. In Microsoft Edge, first switch on Allow extensions from other stores under edge://extensions.

note: If Chrome's Enhanced Safe Browsing is on, the store page can show This extension is not trusted by Enhanced Safe Browsing. Chrome shows this for extensions from publishers that are new to the Chrome Web Store, until the publisher has a track record. Click Continue to install.

Without access to the Chrome Web Store, install the recorder from your KubeSense instead:

  1. In a browser test's Steps, click Import from recorder → Download the recorder. The download is the recorder version your KubeSense imports.
  2. Unzip it.
  3. Open chrome://extensions (or edge://extensions), switch on Developer mode, click Load unpacked and choose the kubesense-synthetics-recorder folder.

Set your KubeSense URL

The recorder talks only to the KubeSense site you set:

  1. Pin KubeSense Synthetics Recorder from the browser's extensions menu.
  2. Open its popup and enter your KubeSense URL under Your KubeSense URL, for example https://kubesense.example.com. On a KubeSense tab, Use this tab's site fills it in.
  3. Reload any open KubeSense tab.

Record from a Browser Test

  1. Create or edit a browser test and open its Steps.
  2. Set the Start URL and click Record. The start URL opens in a new tab, recording, with a bar at the bottom of the page.
  3. Use the page as a user would. Right-click to add checks (see Checks and variables). The test editor lists the steps as they are recorded.
  4. Click Stop and send to KubeSense in the bar, click Stop in the popup, or close the tab. The steps are added after the test's existing steps, and the test editor comes back to the front.

If the recorder is not installed, or your KubeSense URL is not set in it, Record opens Set up the recorder with the same steps as above; click Check again when they are done. Cancel next to Recording in a new tab discards the recording and closes its tab.

Record from the Popup

  1. Open the page the test starts on. Its URL becomes the test's Start URL.
  2. Click the extension, then Start recording this tab. The icon shows REC and the page shows a bar with Stop.
  3. Use the page and right-click to add checks.
  4. Click Open in KubeSense. The recording stops and a new browser test opens in KubeSense with the start URL and the steps. If KubeSense asks you to sign in first, the recording still arrives afterwards (for up to 10 minutes).
  5. Review the steps, create the variables the page lists, run the test and save it.

The popup can also Copy JSON or Download JSON (browser-test.json) instead. Load that in a browser test with Import from recorder: paste the JSON or Choose a file, then Append N step(s). When the test already has a different start URL, tick Replace the start URL to take the recorded one. The same JSON is the config of a browser monitor created through the API.

Clear in the popup discards the recording.


What Is Recorded

What you doStep
Click (double, middle or right click included)Click, with up to 3 alternative selectors
Type in an input, text area or editable elementOne Type text per field, with the last value
Choose an option in a listSelect option
Tick a checkbox or radio buttonClick
Press Enter, Tab, Escape or an arrow key (with modifiers)Press key
Go to an address from the address bar or a bookmarkGo to URL. Link clicks and form submits are recorded as the click or key that caused them
Reload the pageRefresh
Drag and drop an elementDrag, then Drop
Choose files in a file inputUpload files, with the files' content up to 5 MB each

Each element step is found by the most stable selector the recorder finds unique on the page: an id, a test attribute (data-testid, data-test, data-qa, data-cy), aria-label, name, then a CSS path. A click on an icon inside a button records the button. The step also keeps a description of the element (its tag, visible text, label and so on). When a later change to the site breaks every selector, the run finds the element by that description and reports the step as healed.

Checks and variables

While recording, right-click on the page and open KubeSense recorder:

Menu itemStep
Check this text is shownElement content contains the element's text
Check this element is shownElement is present
Check the page shows "…" (on selected text)Page contains text
Check the current URLCurrent URL contains the page's address, without query or fragment
Hover over this elementHover
Save this text as a variableExtract variable with the element's text, as EXTRACTED_TEXT, EXTRACTED_TEXT_2, …
Use a variable for this field… (on a text field)Asks for a name, for example USER_EMAIL. The field's Type text step uses {{ USER_EMAIL }} instead of what you type

A recording without checks only proves that the steps run; the popup says so. Add at least one check that shows the journey worked, such as the order confirmation text.

Passwords and other secrets

The recorder never reads password, one-time-code or card fields: not their value, and not as a step name. Their Type text steps get a placeholder, such as {{ PASSWORD }}, {{ OTP_CODE }} or {{ CARD_NUMBER }}.

KubeSense lists the placeholders under Variables to create before the first run. Create each one under Settings → Synthetics → Global variables, as a Secure variable for passwords and card numbers, or a TOTP variable for one-time codes. The test fails while a variable is missing.

Uploaded files

Files chosen during a recording are kept with their content, up to 5 MB each and 6 MB per recording. Larger files are kept by name only; attach them again in the Upload files step.


Limits

  • Only the page itself is recorded, as browser tests run it: nothing inside iframes, pop-up windows or other tabs.
  • Drags that a page makes with mouse events instead of HTML5 drag and drop (some sortable lists) are recorded as clicks. Add Drag and Drop steps by hand.
  • The context menu shows only while a recording is running.

Permissions and Privacy

PermissionUsed for
Access to all sitesRecording on the tab you choose, and connecting to your KubeSense site
webNavigationRecording address-bar navigations and reloads
contextMenusThe right-click checks, shown only while recording
storageThe recording, in session storage that is cleared when the browser closes, and your KubeSense URL
downloads, clipboardWriteDownload JSON and Copy JSON

The recorder sends nothing anywhere on its own. A recording leaves the browser only when you send it to the KubeSense URL you set, copy it or download it.

Managed browsers

IT can install the recorder for everyone with the Chrome or Edge ExtensionInstallForcelist policy and the extension ID pkfhcbgiaomknelackddpjjmijieakbc.

On this page