Skip to content

dereke/chinchilla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published