Monday, 13 October 2014

SeleniumBuilder

Selenium Builder(Se Builder) is licensed under the Apache 2 License, Se Builder supports creating scripts in both Selenium 1 and Selenium 2. It is alternative to S-IDE (Selenium IDE) and its architecture is based on HTML/JS/jQuery.

Se Builder is a Firefox add-on, used for record-playback and exporting the recorded scripts in your desired language(ex: Java-TestNG).

Se Builder is much more useful for the automation beginners to learn the basics and to have a hands on practice.

Below operations can be performed by Se Builder:
  • Record
  • Edit 
  • Playback
  • Load, Save & export.

1. Adding Selenium Builder Extension

2. Record and Playback

3. Executing Steps

4. Breakpoints

5. Modifying the step

6. Verification

7. Save and Open Script

8. Export script

Selenium Builder - Modifying Steps

Modifying the search text



Updating the page url.


Selenium Builder - Verification

Adding Verification steps.




Selenium Builder - Breakpoint

Adding Breakpoint to the steps.



Removing Breakpoint


Clear All Breakpoints

 


SeleniumBuilder - Executing Steps

Executing specific step


Executing from specific steps to the last step.


 Executing from first step to specific step.



Selenium Builder - Record & Playback

Below steps demonstrates Record & Playback in SeleniumBuilder.


Open SeleniumBuilder

Click "Selenium 2" button.

SeleniumBuilder is recording the actions

Enter "Java" (i.e. Search text),  you can see the 'Search Text' and 'Locators' recorded in SeleniumBuilder.



Play back the recorded commands.


Green background for commands, shows all the commands are executed successfully.


Selenium Builder - Adding Selenium Builder Extension


Install SeleniumBuilder plugin for Firefox browser


Click "Install" button.

Click "Allow" button.


Click "Install Now"

Click "Restart Now"

Tools >> Add-ons >> Extensions

Tools >> Web Developer >> Launch Selenium Builder.


Selenium Builder - Save and Open Script

Save Recorded steps.

Recoded script is stored in JSON format.
 
Open saved script.

Select the script, that is saved earlier.

Script is opened.

Troubleshooting:

     If you try to open the exported script file which is saved as say Java-TestNG file, Se Builder doesn't allow to open the file.Se Builder allows only scripts which are saved in JSON format.


Selenium Builder - Export Script


Select File >> Export

Select the language to export.


Enter the File name and click 'Save'.

Open the saved file.

Troubleshooting:

     If you try to open the exported script file which is saved as say Java-TestNG file, Se Builder doesn't allow to open the file.Se Builder allows only scripts which are saved in JSON format.