Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
@recordreplay/playwright
Advanced tools
Replay enabled fork of the Playwright library.
This is an alternative to Playwright that uses replay enabled browsers where possible to create replays of test runs. It can be added to an existing Playwright test suite or be used as a standalone.
npm i @recordreplay/playwright
playwright/test
After installing, run npx @recordreplay/playwright test
to execute the tests and record with Playwright. Only test runs in supported browsers (see below) will be recorded with Replay.
You will still use your existing @playwright/test
imports for your test files and configuration.
Use @recordreplay/playwright
in require/import statements and write your tests as a function that uses playwright.[browser].launch()
.
Example:
const playwright = require("playwright");
(async function () {
const browser = await playwright.firefox.launch({
headless: false,
});
const context = await browser.newContext();
const page = await context.newPage();
await page.goto("https://unsplash.com/");
await page.close();
await context.close();
await browser.close();
})();
You can then use node testfile.js
to execute and record your tests without needing to also install @playwright/test
.
Replays are saved locally to ~/.replay
. After running any playwright scripts, use the replay-recordings CLI tool to manage and upload the recordings.
The currently supported platforms/browsers are below. On other platforms/browsers, the regular non-recording version of the browser will be used.
FAQs
A high-level API to automate web browsers
The npm package @recordreplay/playwright receives a total of 13 weekly downloads. As such, @recordreplay/playwright popularity was classified as not popular.
We found that @recordreplay/playwright demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.