🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More
Socket
Book a DemoInstallSign in
Socket

puppet

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puppet

Natural-language web automation using Puppeteer

Source
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

🎭 Puppet

Natural-language web automation using Puppeteer.

Node CI Travis CI Coverage Dependencies License Vulnerabilities Based on Node.ts npm type definitions npm package npm downloads Contributors semantic-release

npm

⭐️ How it works

Write in natural language (following the Commands section). For example, you can create a file with the following set of commands:

path/to/download.puppet:

Go to typeform.com
Click on the login link
Type username user@example.com
Type password 3rjiw9qie2308
Click on login button
Take a screenshot
Download https://admin.typeform.com/export
Save to to report.csv

Then, run the command:

puppet "path/to/download.puppet"

💡 Usage

Install the package from npm:

npm install puppet

Install and use the CLI:

npm install --save-global puppet
puppet "path/to/commands.puppet"

Import and use the API:

const { puppet } = require("puppet"); // Node.js
import { puppet } from "puppet"; // TypeScript/ES6

const { url } = await puppet("path/to/commands.puppet");

🔫 Commands

Command exampleDescription
Go to example.comNavigate to a URL
Wait for 5 secondsWait for a specific time
Click on learn more linkPerform event on DOM element
Wait for navigationWait for next page to load

👩‍💻 Development

Build TypeScript:

npm run build

Run unit tests and view coverage:

npm run test-without-reporting
  • Puppeteer is the headless Chrome API for Node.js
  • Archiver is the Internet Archive saver I made using Puppeteer
  • TagUI is a CLI for digital process automation (RPA)

✨ Contributors

Thanks goes to these wonderful people (emoji key):


Anand Chowdhary

🤔 💻 ⚠️ 📖

Gajus Kuizinas

🚇

This project follows the all-contributors specification. Contributions of any kind welcome!

📄 License

MIT © Anand Chowdhary

Keywords

node.js

FAQs

Package last updated on 16 Apr 2020

Did you know?

Socket

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.

Install

Related posts