Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pupcheck

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pupcheck

E2E test scripting through puppeteer

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
56
increased by1.82%
Maintainers
1
Weekly downloads
 
Created
Source

node-pupcheck

Simple file format for puppeteer-based End-to-end tests

Command line tool

run with

npx pupcheck

pupcheck [-Hhv] [file ...]

Command line switches:

  -H         : Headful; open browser window
  -v         : verbose
  -h, --help : help

pupcheck file (*.pch) commands:

# This is a comment but only if # is first character

goto {url}
  Navigate to this URL
  Example: goto https://google.com

status {status code}
  Assert this status code
  Example: status 200

contains {contents}
  Assert this is in the page contents
  Example: contains Tasks completed

containsnot {contents}
  Assert this is in not in the page contents
  Example: contains An error occurred

click {selector}
  Click the selected element and wait for navigation to complete
  Example: click button#click_me

type {selector} {text}
  Type the text into the selected input element
  Example: type input#full_name John Smith

sleep {milliseconds}
  Sleep for this many milliseconds
  Example: sleep 1000

Example pupcheck file:

example.pch contents:

goto https://example.com/
type input#id_username egergerarg@gmail.com
type input#id_password grehq4hhq32534534t
click input[type=submit]
contains Tasks completed

FAQs

Package last updated on 24 Nov 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc