First steps with Selenium Selenium IDE tool
Date posted
10 May 2013
Reading time
18 Minutes
First steps with Selenium Selenium IDE tool
If you would like to learn more about the practical side of test automation, but you are not quite sure where to start Selenium IDE might be the answer. The goal of the following post, which I've structured as a mini-tutorial, is to provide an overview of the basic functions of Selenium IDE, its possibilities and limitations.
Installation
To be able to work with Selenium IDE you will need the Firefox browser. After it is installed, you will need to download the Selenium IDE installer from: http://seleniumhq.org/download/. When Selenium IDE is installed, it is then available as a Firefox plugin.
Test Recording
The easiest way to see what Selenium IDE provides is to use it for the purpose it was created for: to record a test.
We will execute and record a simple test: using Google we will search for kainos.pl page and then open the page and make sure this action was successful.
We need to start Selenium IDE and then press the round red button - this will start recording of our test. Next, in the new window of the Firefox browser we go to www.google.pl and put the phrase that we are going to look for 'kainos.pl' into the search form, and then press the Search button.
When the above steps are executed, we should see search results similar to the ones below:
- name=nameAttributeValue finds the first element with the given name attribute's value (in the case of our form the Target parameter value would be name=q).
- xpath=xPathExpression locates an element using the XPath expression (in our case the XPath expression value could be xpath=//tbody/tr/td/div/input[@name='q']).
- link=textPattern selects the link (anchor) element which contains text matching the specified pattern.
- Open the Google.pl search page
- Fill in the search form input field with the kainos.pl phrase
- Click the Search button