public
Description: Snap your teeth on some browser screenshots using selenium
Homepage: http://github.com/jeffrafter/crocodile
Clone URL: git://github.com/jeffrafter/crocodile.git
name age message
file .document Wed Jul 08 02:10:59 -0700 2009 Initial commit to crocodile. [jeffrafter]
file .gitignore Wed Jul 08 02:10:59 -0700 2009 Initial commit to crocodile. [jeffrafter]
file LICENSE Wed Jul 08 02:10:59 -0700 2009 Initial commit to crocodile. [jeffrafter]
file README.rdoc Wed Jul 08 04:40:27 -0700 2009 Support http/file sources and allow for arbitra... [jeffrafter]
file Rakefile Wed Jul 08 02:36:17 -0700 2009 Adding in the crocodile script and support classes [jeffrafter]
file VERSION Sat Aug 22 15:12:12 -0700 2009 Version bump to 0.4.3 [jeffrafter]
directory bin/ Sat Aug 22 15:12:24 -0700 2009 Fix starting and stopping [jeffrafter]
file crocodile.gemspec Sat Aug 22 15:12:24 -0700 2009 Fix starting and stopping [jeffrafter]
directory lib/ Sat Aug 22 15:12:24 -0700 2009 Fix starting and stopping [jeffrafter]
directory test/ Wed Jul 08 02:10:59 -0700 2009 Initial commit to crocodile. [jeffrafter]
directory vendor/ Sat Aug 22 04:54:33 -0700 2009 Add timeouts and support the latest firefox [jeffrafter]
README.rdoc

Crocodile

Crocodile is a simple lib and executable for taking screenshots. Make it better. It relies on the selenium-client gem. Currently however, it is only compatabile with the selenium-client -v=1.2.14. Newer versions of the selenium gem are not yet supported.

  $ sudo gem install selenium-client -v=1.2.14
  $ sudo gem install crocodile

Once you have installed crocodile and the selenium-client gem you can quickly snap shots of mockups from the commandline:

  $ crocodile --start --stop --width=1024 --height=768 mockup.html mockup.png

This tells crocodile to start the Selenium Remote Control Server in the background (and stop it when the task is completed). It tells it to load the file mockup.html (because no protocol is included, the script assumes this is on the local filesystem). Once loaded, the browser window will be resized to 1024 pixels by 768 pixels. The screenshot will be saved as mockup.png.

You can get basic help as well

  $ crocodile --help

Copyright

Copyright © 2009 Jeff Rafter. See LICENSE for details.