Upload
joseph-scott
View
102
Download
0
Embed Size (px)
DESCRIPTION
Citation preview
Site TestingWith CasperJS
Joseph Scotthttp://josephscott.org
Install
PhantomJS, download binary
CasperJS - http://casperjs.org/installation.html
CasperJS Features:
๏ defining & ordering browsing navigation steps๏ filling & submitting forms๏ clicking & following links๏ capturing screenshots of a page (or part of it)๏ testing remote DOM๏ logging events๏ downloading resources, including binary ones๏ writing functional test suites๏ scraping Web contents
Scriptable in JavaScript and CoffeeScript
Everything starts simple
var casper = require('casper').create();
Trying out live examples
export PHANTOMJS_EXECUTABLE="/Users/josephscott/Dropbox/joseph/slides/casperjs/bin/phantomjs"
Questions?