Anchor Browser provides built-in session recording that allows you to capture and review browser sessions. This feature is invaluable for debugging automation workflows, analyzing user behavior, and creating documentation.
Anchor Browser automatically records browser sessions and creates an MP4 video file that captures the complete visual experience.
Recordings are accessible both through our API and the web UI (see below).
Recording is enabled by default when creating a session.
Start a session using the SDK, you can enable recording by setting:
recording -> active -> true in the request body.
Delete a specific recording from a session. Use "primary" as the recording ID to delete the primary recording.
import AnchorBrowser from 'anchorbrowser';(async () => { const anchorClient = new AnchorBrowser({apiKey: process.env.ANCHOR_API_KEY}); const sessionId = 'your-session-id'; // Replace with actual session ID const recordingId = 'primary'; // Or use a specific recording ID const response = await anchorClient.sessions.recordings.delete(sessionId, recordingId); console.log("Recording deleted:", response.data);})().catch(console.error);
The Session History dashboard shows all sessions. Each session has a link to its recording.
If a session is still running, the link in the session history page will take you to the session’s live view instead of the recording. Once the session ends, the link will point to the recording.
When you click on a session recording, the playback interface will be opened.
You can use it to view the recording, navigate through it, and download it as MP4 file.