Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Site Testing with CasperJS

3,749 views

Published on

Published in: Technology
  • Be the first to comment

Site Testing with CasperJS

  1. 1. Site TestingWith CasperJSJoseph Scotthttp://josephscott.org
  2. 2. PhatomJShttp://phantomjs.org/
  3. 3. CasperJShttp://casperjs.org/
  4. 4. InstallPhantomJS, download binaryCasperJS - http://casperjs.org/installation.html
  5. 5. 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
  6. 6. Scriptable in JavaScript andCoffeeScript
  7. 7. Everything starts simplevar casper = require(casper).create();
  8. 8. Trying out live examplesexport PHANTOMJS_EXECUTABLE="/Users/josephscott/Dropbox/joseph/slides/casperjs/bin/phantomjs"
  9. 9. Questions?
  10. 10. Joseph Scotthttp://josephscott.org/joseph@josephscott.org@josephscott

×