
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
playwright-humanize
Advanced tools

Humanizer functions for playwright
$ npm install @nicoandmee/playwright-humanize
Provide a useful set of functions that complement playwright's interface to mask bot behavior. Is only concerned with humanization functions as opposed to an whole suite of evasions. For that, see puppeteer-extra-plugin-stealth
Below is an example of the typeInto function.
import { typeInto, TypeIntoConfig } from "@nicoandmee/playwright-humanize"
import { launch, Browser, Page, ElementHandle } from "playwright-extra"
;( async () => {
const browser: Browser = await launch()
const page: Page = await browser.newPage()
await page.goto(`https://foo.bar`)
const input: ElementHandle | undefined = await page.$(`input#my-input`)
if (input) {
// Text to enter into input.
const text: string = `Zero Cool? Crashed fifteen hundred and seven computers in one day? Biggest crash in history, front page New York Times August 10th, 1988. I thought you was black, man. YO THIS IS ZERO COOL!`
// Optional action configuration.
// See `schemas/configs.ts` for full configuration shape.
const config: TypeIntoConfig = {
mistakes: {
chance: 8,
delay: {
min: 50,
max: 500
}
},
delays: {
space: {
chance: 70,
min: 10,
max: 50
}
}
}
// Deploy the action...
await typeInto(input, text, config)
}
console.log(`Input complete!`)
} )()
typeInto(element, text, config)For private inquiries: email
Originally forked from puppeteer-humanize.
FAQs
Humanization functions for Puppeteer.
The npm package playwright-humanize receives a total of 71 weekly downloads. As such, playwright-humanize popularity was classified as not popular.
We found that playwright-humanize demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.