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

chinchilla

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chinchilla

JQuery backed Capybara like browser automation

  • 0.0.9
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

chinchilla

Control your browser via javascript using capybara like syntax.

Purpose

This framework was created specifically to test angular apps written in PogoScript. While it could be useful to test any web appliction it will be difficult to use if you are not using PogoScript. You should really try PogoScript it is a far nicer way to write JavaScript.

How to use chinchilla

You will want to use this with browserify:

chinchilla = require 'chinchilla'
browser = chinchilla($('body'))

Finders

browser.find!('.any-css-selector')

Actions

browser.click!('.any-css-selector')
browser.click link!('text in link')
browser.click button!('text in button')
browser.select!('Orange', from: 'select[name=fruit]')
browser.fill in!('input.message', with value: 'Hello World')

Query

browser.is visible!('.any-css-selector')
browser.has selector!('.any-css-selector')
browser.has selector?('.cart .product', count: 5)

Scope

browser.within('.product') @(scope)
  scope.click button!('buy now')

FAQs

Package last updated on 19 Mar 2014

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