Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose the recording method by the artifact you need: use video to watch what happened, a Playwright trace to diagnose a test step by step, or Selenium IDE to record browser actions as replayable commands. These outputs serve different jobs; a video is not a trace, and neither automatically creates an editable test.

What do you mean by “record a browser automation session”?

Before setting anything up, decide what you need to keep after the browser run. A visual recording helps someone watch the page as it changed. A trace preserves debugging context around actions and page state. A recorded command sequence gives you a starting point for a test that can be replayed and edited.

Need Use What you inspect
Show what a run looked like Playwright video A video file in a player
Understand why a Playwright test failed Playwright trace An archive opened in Trace Viewer, with actions and associated context
Capture user actions as test commands Selenium IDE Recorded commands in the IDE, which can be played back and edited

This distinction matters when sharing evidence or investigating a flaky test. Video can make a sequence visible, but it does not provide the trace viewer’s locator, action-log, source-location, and DOM-snapshot views. A trace is for investigation, not simply a movie file. Selenium IDE’s recording is a command-oriented starting point rather than a visual-only artifact.

Record video for Playwright Test runs

Playwright Test supports video capture through its video setting. Video is off by default. The documented policies let you decide whether to capture all tests, retain only failure-related output, or capture retries. See the Playwright video documentation for the configuration details and supported options.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Choose a capture policy

Setting When to use it Trade-off
off You do not need video artifacts. No video is captured.
on You want a video for every test run. Captures more artifacts than selective policies.
retain-on-failure You want to keep videos for tests that fail. Successful-run videos are not retained.
on-first-retry You want video when a test is retried. It does not capture every initial run.

Set the policy in the Playwright Test configuration. For example, this config enables video for each test:

import { defineConfig } from '@playwright/test';

export default defineConfig({
  use: {
    video: 'on',
  },
});

To retain video only when a test fails, use video: 'retain-on-failure'. To capture video on a retry, use video: 'on-first-retry'. The setting is a capture policy, so pick the one that matches how often you need visual evidence rather than enabling capture by habit.

Manual browser contexts must be closed

If you create a BrowserContext manually rather than relying on Playwright Test to manage the test context, close it and await that closure before expecting the video file to be finalized. The Browser API also documents context-level recordVideo, including an output directory and optional size settings; consult the Playwright Browser API reference for the current API shape.

In practice, make context shutdown part of the end of your script’s normal cleanup path, including when an assertion or interaction fails. Otherwise, the browser run may have happened but the expected video may not yet be available as a finished file.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Record a Playwright trace to debug a test

For a failure you need to understand—not merely show—record a trace. A trace can preserve the action sequence alongside locator information, timing, action logs, source locations, and DOM snapshots. When screenshots are enabled, the timeline also includes screencast imagery. This lets you inspect what Playwright attempted and the page state around an action rather than relying only on the final screen.

Capture a trace with Playwright Test

For a quick local run, the Playwright Trace Viewer guide documents this command:

npx playwright test --trace on

To open an exported trace archive locally, run:

npx playwright show-trace path/to/trace.zip

Replace path/to/trace.zip with the archive you want to inspect. In the viewer, select an action to examine its timing and before/after state, associated locator, action log, source location, and DOM snapshot. Use the timeline’s screencast frames when screenshots were enabled and you need visual context for the action.

Select a trace mode deliberately

The documented modes include off, on, on-first-retry, on-all-retries, and retain-on-failure. Playwright warns that tracing every test with on is performance-heavy. For a test suite where traces are mainly needed to investigate failures, retry- or failure-oriented modes can reduce the amount of routine capture. If you need to diagnose a problem that is not reliably reproduced on retry, capturing more broadly may be worth the additional overhead.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Configuration is set in the Playwright Test config’s use options, for example:

import { defineConfig } from '@playwright/test';

export default defineConfig({
  use: {
    trace: 'on-first-retry',
  },
});

When you are not using the Playwright Test runner, the Trace Viewer guide describes recording through the BrowserContext tracing API. In that workflow, export the trace as a ZIP archive and open it in Trace Viewer. Follow the current Trace Viewer guide for API calls and options rather than assuming runner configuration applies to a standalone script.

Local versus browser-hosted Trace Viewer

You can inspect a trace with the local show-trace command. Playwright also documents a browser-hosted Trace Viewer and says it processes the trace in the browser without transmitting the trace data externally. That statement applies to the documented Playwright viewer; it should not be generalized to other trace-hosting services or to wherever you separately store or share the ZIP file.

Record browser actions with Selenium IDE

Selenium IDE is a browser extension for recording and playing back user actions. The Selenium documentation lists Chrome, Firefox, and Edge as supported browsers. Its getting-started guide describes creating a project, setting a base URL, interacting with the opened browser window while recording, and stopping the recording in the IDE. The guide is older than the Playwright documentation, so check the relevant browser store for current installation availability rather than assuming the guide establishes present store status.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
  1. Open Selenium IDE and create a project.
  2. Set the base URL for the site you intend to exercise.
  3. Start recording and use the browser window that the IDE opens.
  4. Perform the interactions you want represented in the test, such as navigating and using the page.
  5. Return to Selenium IDE and stop recording. Review the captured commands and play them back to check whether the recorded sequence works as intended.

Recording is a convenient way to get an initial command sequence, but it does not remove the need to review the result. Page changes, timing, and the exact interaction path can affect whether a recorded test remains useful. Selenium’s official overview is at Selenium IDE; the step sequence is in its Getting Started guide.

Which method should you choose?

  • Choose video when a teammate needs to watch the browser run or you need a visual playback artifact. Select a Playwright video policy based on whether you need every run, failures, or retries.
  • Choose a trace when diagnosing a Playwright failure requires the action, locator, timing, source, and page-state context around the failing step.
  • Choose Selenium IDE when the goal is to capture user interactions as browser commands that can be reviewed and replayed.

For debugging, trace is usually the most informative of these three artifacts because it connects actions with page and execution context. For communication, a video may be easier to watch. For a recorded starting point for a browser test, Selenium IDE addresses a different need from either artifact.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If what you need is a clean image of a webpage—not a video or a replayable automation test—ScreenshotNeo can return a screenshot with one GET request. Its cookie-banner handling and page cleanup are separate from recording an automation run, so use it when the deliverable is a page image.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo documentation for API parameters. Cookie and consent banners are accepted like a visitor and more than 60 known consent platforms, newsletter popups, and chat widgets can be removed before capture; each cleanup step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and each response identifies the page verdict and billing status in headers. ScreenshotNeo also offers an MCP server with screenshot, page-info, and PDF tools for AI agents. The Free plan includes 1,000 shots a month with no card; paid plans start at $5 for 3,000 shots.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Create a free ScreenshotNeo account to get 1,000 screenshots a month with no card.

Troubleshooting recording problems

The video file is missing or incomplete

  • Check that the configured video mode is not off.
  • If you manage the browser context yourself, close it and await closure; Playwright saves videos when the context closes.
  • If using retain-on-failure or on-first-retry, verify that the run meets that policy. These modes do not mean every successful initial run will leave a retained video.

The trace is not available for a passing run

Check the selected trace policy. Retry- and failure-oriented modes intentionally do not capture or retain every passing run in the same way as on. If you need to diagnose a failure that does not reproduce on retry, consider a mode that captures the relevant run, while accounting for the documented performance overhead of tracing every test.

Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

The trace archive will not open

Confirm that you are pointing show-trace at the exported trace ZIP, not a video file or an unrelated archive. Use the documented Trace Viewer workflow to open the archive. If using the hosted viewer, remember the Playwright documentation’s privacy statement concerns the viewer’s in-browser processing; it does not govern other services where you might store or transmit the archive.

The Selenium recording does not replay correctly

Return to the IDE, review the recorded commands, and run the sequence again from its configured base URL. Make sure you recorded interactions in the browser window opened for the recording flow and stopped the recording through the IDE. If the installed extension or browser behavior differs from the older getting-started guide, check current browser-store details rather than treating the guide as confirmation of current compatibility.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Frequently Asked Questions

Can I use Playwright video and trace at the same time?

They are separate capture options with separate artifacts and policies; configure the combination your test workflow needs and check the Playwright documentation for the current configuration details.

Does a screenshot record a browser automation session?

No. A screenshot captures a page image, not the run’s video, trace context, or replayable browser commands.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.