Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@replayio/puppeteer
Advanced tools
Configuration utilities for using the Replay browsers with puppeteer
Provides utilities to support using Replay with Puppeteer
Use with replayio/action-upload to automatically upload replays of puppeteer scripts. Check out our documentation here.
Exports
getExecutablePath()
- Returns the path to the replay chromium browser.getMetadataFilePath(workerIndex: number = 0)
- Returns the path of a worker-specific metadata file keyed by the workerIndex
. The file path will be within the RECORD_REPLAY_DIRECTORY
.You can add metadata to your puppeteer recordings using either the RECORD_REPLAY_METADATA
or RECORD_REPLAY_METADATA_FILE
environment variable. If both are set, RECORD_REPLAY_METADATA_FILE
takes precedence.
Currently, this metadata is only available locally except for
title
RECORD_REPLAY_METADATA_FILE
- The path to a file containing JSON-formatted metadataRECORD_REPLAY_METADATA
- JSON-formatted metadata stringconst puppeteer = require("puppeteer");
const { getExecutablePath } = require("@replayio/puppeteer");
(async () => {
const browser = await puppeteer.launch({
headless: false,
executablePath: getExecutablePath(),
});
const page = await browser.newPage();
await page.goto("https://replay.io");
await page.screenshot({ path: "replay.png" });
await page.close();
await browser.close();
})();
FAQs
Configuration utilities for using the Replay browsers with puppeteer
The npm package @replayio/puppeteer receives a total of 161 weekly downloads. As such, @replayio/puppeteer popularity was classified as not popular.
We found that @replayio/puppeteer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.