Selenium Tutorial
From DojoWiki
←Older revision | Newer revision→
Selenium
This tutorial will encompass two different techniques for running Selenium tests.
First is the Selenium IDE
Install the Firefox plugin from http://openqa.org/selenium-ide/download.action (The most recent version, as of this writing, was 0.8.6).
In Firefox 2.0.0.1, I had to allow openqa.org as an "Allowed Site".
From the IDE, creating tests is easy.
- In Firefox, select "Tools | Selenium IDE" from the main menu.
|
|
When you begin surfing through a site, the activity will be recorded by Selenium. When I click on a link to http://pghcodingdojo.org, the Base URL in selenium is set as http://pghcodingdojo.org and an initial command is defined (open : /index.php/Main_Page)
The great thing about Selenium is that these requests can be saved (in HTML format) which is reused when you open the IDE. The HTML tests are also used by the Selenium TestRunner in a Browser. Finally, the tests can be saved as Java, Python, Perl, Ruby, and C# by selecting "Options | Format" from the Selenium IDE menu.
As we talk about Selenium_RC we'll show how these scripts can be used to automate Selenium web testing.

