Skip to content

Instantly share code, notes, and snippets.

@olleolleolle
Created February 25, 2010 23:50
Show Gist options
  • Save olleolleolle/315198 to your computer and use it in GitHub Desktop.
Save olleolleolle/315198 to your computer and use it in GitHub Desktop.
Micro-manual for the beginning Selenium user

Using the Rakefile tasks for Selenium

Getting started using the Selenium build system can be tough. Here are a few pointers to the Rake tasks that you can use.

There are quite a lot more tasks in there than rake --tasks shows you. This walkthrough introduces some of the tasks.

Tasks that help Selenium IDE (Firefox extension)

Setting up to develop for Selenium IDE

Prepare your development environment for the Selenium IDE Firefox plugin:

rake se_ide:setup_proxy

This sets up symlinks between folders, and makes it possible to start developing in "proxy mode" as Mozilla's docs calls running a plugin from a text file with the path to the extension's files.

You can drop these symlinks by calling:

rake se_ide:remove_proxy

Build a distributable XPI

Call

rake xpi

Testing Selenium itself

Run rake without any parameters to invoke rake test, the default task. This runs a bunch of tests against the WebDriver code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment