Popular Articles

At one time Russia rivaled the USA as a global power, but then came Gorbochov and we all know that Russia broke up into 18 states. This was also the end
Subhas Chandra Bose was a rival of Gandhi and during the war he threw his lot with the Fascist powers and joined them. He had a one point agenda to overthrow
I had in an earlier post pointed out that the great Hindu warrior  Hemu was struck by an arrow in his eye in the third battle of Panipat and lost

Latest Articles

Subhas Chandra Bose was a rival of Gandhi and during the war he threw his lot with the Fascist powers and joined them. He had a one point agenda to overthrow
At one time Russia rivaled the USA as a global power, but then came Gorbochov and we all know that Russia broke up into 18 states. This was also the end
I had in an earlier post pointed out that the great Hindu warrior  Hemu was struck by an arrow in his eye in the third battle of Panipat and lost

 

Selenium IDE is an automated testing tool which can be used to create automated scripts to test the web application more faster. Below is how a selenium script can be created and executed.

BasicLayout

 

 

1. Above snapshot is the basic layout of selenium IDE. In above snapshot, red colored round button is nothing but Recorder button. By keeping the recorder button as ON, we can record name of textboxes, radio button, text typed in textbox into screen below it. This is detailed in snapshots below. You can see the text box of Base URL, containing URL. You can give URL of your web application so that scripts will test on your application.

command

2. In above snapshot, drop down for Command shows various commands which you can use while creating scripts.These are default commands which comes with Selenium IDE. In order to get more commands, especially javascript commands, you need to download corresponding extension files and upload in IDE.

record

3. Above snapshot tells that IDE is recording actions taken on www.google.co.in. Note that in order to record actions, red colored circle button needs to be ON as shown in above snapshot. In above snapshot, as "google" is typed in the textbox of google.com website, 2 commands are automatically recorded i.e. open and type. open command opens the URL placed in Base URL and type command identifies what text is typed in which text box alongwith the name of that text box. Here, name of text box on google.com is "sf".

Untitledbutton

4. Similarly, button whose name is "Google Search" in display, has actual name as "btnG". As this button was clicked, click command was automatically traced by IDE. And now, save the script. Always remember to save the script with .html as extension. Here, script was saved as script.html.

execute

 

5. Now for execution of the script, Make the recorder button as OFF. Click Execute button as shown in above snapshot. After execution, result looks some thing like shown below.

executed

 

 

  • No comments found