Skip to content

Instantly share code, notes, and snippets.

View Attamusc's full-sized avatar
:octocat:

Sean Dunn Attamusc

:octocat:
View GitHub Profile

Keybase proof

I hereby claim:

  • I am attamusc on github.
  • I am attamusc (https://keybase.io/attamusc) on keybase.
  • I have a public key ASA769aAOhF1j14zVE_n7FXSCyHEZCkTG215fZ99zvK0igo

To claim this, I am signing this object:

@Attamusc
Attamusc / screenshot.coffee
Created June 23, 2012 14:43
Take a screenshot of any website, using PhantomJS.
# Simple little script to take a Screenshot of any website
#
# Usage: phantomjs screenshot.coffee http://google.com ./google.png
# I've always liked automated testing tools for front-end development like Selenium
# and Selenium Remote Control. One of the cool features was the ability to take a screenshot
# if the test failed. This was always useful as sometimes I could immediately see what went
# wrong and then fix it based on what I saw in the screenshot.
#
# I just started playing with PhantomJS and thought "I wonder if I could replicate that!"