secret-fill-by-playwright-cli-ref
v0.0.2
Published
This tool fills an input field using a Playwright CLI ref and a secret value from `.env`.
Readme
secret-fill-by-playwright-cli-ref
This tool fills an input field using a Playwright CLI ref and a secret value from .env.
This tool is designed to reduce secret exposure in chat and generated browser code.
How to use?
npx secret-fill-by-playwright-cli-ref n46 USERNAMEHow to use in Agent Skills?
---
name: open-example-com-and-fill-login-form
description: Opens example.com, takes a snapshot, and fills the login form using secret-fill-by-playwright-cli-ref.
---
## Steps
- playwright-cli open https://example.com --headed
- playwright-cli snapshot
- find ref "username"
- npx secret-fill-by-playwright-cli-ref [previous step] with USERNAME
- find ref "password"
- npx secret-fill-by-playwright-cli-ref [previous step] with PASSWORDSetup
npm install -g playwright-cliSetup - Secrets
Store secret values in your own .env file. Do not store secrets inside this skill.
USERNAME=your_username
PASSWORD=your_passwordSupport
[https://x.com/jtakahashi0604]
