Recordings
Hyperbrowser Session Recordings
Hyperbrowser allows you to record and replay your browser sessions. It uses rrweb, an open-source web session replay library. Session recordings let you:
Visually debug test failures and errors
Analyze user behavior and interactions
Share reproducible bug reports
Save and archive session data
Enabling Session Recording
To record a session, set the enableWebRecording
option to true
when creating a new Hyperbrowser session:
This will record all browser interactions, DOM changes, and network requests for the duration of the session.
Retrieving Recordings
Recorded sessions are automatically saved when the Hyperbrowser session ends. To retrieve a session recording:
Note the
id
of the session you want to replayUse the Session Recordings API to download the recording, or if you are using the SDKs, you can just call the
getRecording
function:
The recording data will be returned in rrweb's JSON format.
Replaying Recordings
To replay a session recording, you can use rrweb's player UI or build your own playback interface.
Using rrweb's Player
Here's an example of using rrweb's player to replay a recording:
Include the rrweb player script on your page:
Add a container element for the player:
Initialize the player with your recording data:
This will launch an interactive player UI that allows you to play, pause, rewind, and inspect the recorded session.
Building a Custom Player
You can also use rrweb's APIs to build your own playback UI. Refer to the rrweb documentation for thorough details on how to customize the Replayer to your needs.
Storage and Retention
Session recordings are stored securely in Hyperbrowser's cloud infrastructure. Recordings are retained according to your plan's data retention policy.
Limitations
Session recordings capture only the visual state of the page. They do not include server-side logs, database changes, or other non-DOM modifications.
Recordings may not perfectly reproduce complex WebGL or canvas-based animations.
Last updated