@hackage selenium0.2.3

Test web applications through a browser.

Haskell bindings to communicate with a Selenium Remote Control server. This package makes it possible to use Haskell to write test scripts that exercise web applications through a web browser.

Selenium Remote Control is a test tool that allows you to write automated web application UI tests in any programming language against any HTTP website using any mainstream JavaScript-enabled browser.

Selenium Remote Control provides a Selenium Server, which can automatically start/stop/control any supported browser. It works by using Selenium Core, a pure-HTML+JS library that performs automated tasks in JavaScript.

Getting Selenium

The Selenium Remote Control server is available from

http://www.openqa.org/selenium-rc/

and depends on the Java Runtime Environment version 1.5.0 or newer. It runs on the same machine as the web browser it controls. The application under test can run anywhere accessible to the browser, as can the test driver script.

We have tested these Haskell bindings primarily with Selenium RC 0.9.2.

http://release.openqa.org/selenium-remote-control/0.9.2/

Once you have uncompressed the .zip file, you can start the server with the command:

java -jar selenium-server.jar

The standard configuration, without any command-line options, should work right away with the Haskell bindings.

You will also need 'firefox-bin' (or some other browser) in your path. To test it is working, launch the selenium server, then:

$ cd selenium/examples
$ runhaskell Simple.hs

Authors

Aaron Tomb atomb@galois.com Don Stewart dons@galois.com

Let us know if you're using it.