Site Testing with CasperJS

3,635 views

Published on

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,635
On SlideShare
0
From Embeds
0
Number of Embeds
1,662
Actions
Shares
0
Downloads
34
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

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

×