This is a demo to show how to use Puppeteer to do some automation tasks.
If you want to use Puppeteer with Vitest, please refer to puppeteer-with-vitest-demo.
create .env
file
# replace by your own
OPENAI_API_KEY="YOUR_TOKEN"
run demo
npm install
# run demo.ts
npx tsx demo.ts
https://midscenejs.com/integrate-with-puppeteer.html https://midscenejs.com/api.html