-
Notifications
You must be signed in to change notification settings - Fork 9
Home
Selenium is a well known web unittest framework, it allows you to test your web site inside several browsers.
Selenium-RC is an extension which allow you to run your tests remotely and from your favorite language.
When I started to be interested by selenium, no erlang client library was avaiable.
After a quick look at the protocol between the server and the ‘library’, I don’t see any reasons that make the erlang binding impossible to write so I decided to write erl_selenium.
In order to start using erl_selenium, you can download the last source package at http://github.com/charpi/erl_selenium/downloads or visit the public git repository.
If you are using erl_selenium, I’ll be glad to have your feedback. Feel free to send a mail at [email protected]
Last download version supports:
- OTP R14
- Selenium server 2.1.0 (provided in the package)
- Download the archive file.
- Unzip it
- Enter in the directory
- Compile the project with
rake
(Please ensure to update the file erlang_config.rb.)
- rake start_server
- rake tests
- rake stop_server
The package is extremely simple to use and don’t have extra dependency.
All requests are made with the standard OTP http client. If you want to use it for load testing, you might encounter some limitation due to httpc.
test () -> Session = selenium :start (?HOST,?PORT, ?BROWSER, ?URL), Start_url = "http://charpi.net", Command = open, selenium: cmd (Session, Command, [Start_url]), selenium: stop (Session).
test () -> Session = selenium :start (?HOST,?PORT, ?BROWSER, ?URL), Start_url = "http://charpi.net", selenium_api: open (Session, Start_url), selenium: stop (Session).
test () -> Session = selenium :launch_session (?HOST,?PORT, ?BROWSER, ?URL), Start_url = "http://charpi.net", Session: open (Start_url), Session: stop_session ().