Selenium Tutorial For Beginners

Selenium Tutorial For Beginners

Introduction to Selenium

1) Selenium is a Suite of Tools for Functional and Regression Testing.

> Selenium is not a single tool, suite of tools, but you no need to use all tools for any project, you can select one or two tools, enough...

> Selenium Components or Selenium's Tool Suite:
i) Selenium IDE
ii) Selenium RC
iii) Selenium WebDriver
iv) Selenium Grid

> Other Test Tools in this category (Functional & Regression Testing) are,
i) HP-UFT (Formerly QTP)
iii) Micro Focus-SilkTest Etc...
Introduction to Selenium
2) Selenium is an Open Source Software, and it Automates Web Browsers...

> Selenium is an Open source Software, anybody can download from Selenium official website www.seleniumhq.ord and use with free of cost.

For Example UFT/QTP, RFT are commercial tools

> Selenium can automate Web Applications/Browser based Applications only, it doesn’t automate Desktop Applications, UFT/QTP automates both Desktop Applications and Web Applications, 

Note: No Problem nowadays, most of the Software Applications are Web Applications only.

3) Selenium Supports Various Operating Environments to conduct Automated Testing…

> It supports,
i) MS Windows,
ii) Linux,
iii) Macintosh etc...

> Whereas UFT Supports MS Windows Operating Environment Only

> What is Operating Environment Support, for example our AUT (Application Under Test) Installed on Windows, we can use Selenium for Automated Testing, or our AUT installed on Linux, we can use Selenium for Automated testing. or our AUT installed on Macintosh, we can use Selenium for Automated Testing...

4) Selenium supports various Browsers to Create and Execute Test Cases…

> Selenium supports all popular browsers like,
i) Mozilla Firefox
ii) Google Chrome
iii) Internet Explorer /MS Edge
iv) Opera
v) Safari etc...

> Means we can create Tests in one browser and execute the Tests in the same browser or using other Browsers

> Suppose create Test cases using Firefox Browser, execute the Tests using Firefox, or Chrome, or IE etc...Browsers

5) Selenium supports various Programming Platforms to Write & Execute Test Case…

> Selenium supports,
i) Java,
ii) Python
iii) C#.Net
iv) Perl
v) Ruby
vi) PHP

> You can use any one of those programming languages to write Test Scripts/Test Cases

> UFT/QTP supports VBScript only

Note: Selenium IDE in Selenium's Tool Suite doesn't support any programming to write Test cases.

6) Drawbacks of Selenium…

> Before going to explain Drawbacks of Selenium, you can easily understand the Advantages of Selenium, I already explained some points,

i) Selenium is Open Source Software, anybody can use this Software with free of cost 

ii) Selenium Supports various operating environments, Browsers, and programming platforms for Automated Testing,

next come to Drawbacks of Selenium,

i) No reliable Technical Support from anybody.
(Since It is Open Source software nobody providing reliable technical support, if it is UFT/QTP Vendor (HP) provides Technical Support)

ii) It supports Web based applications only.

iii) No Built-in Reporting facility. 
(Selenium WebDriver doesn't have built in Result Report facility, we need to take help from either JUnit ot TestNG Testing Framework to generate Test Reports.)

Note: UFT/QTP has built-in Result Reporting facility (Test Result Viewer), UFT provides Test Result for every Test iteration.)

7) Selenium Environment Setup…

Select Selenium Tools and Others for Test Automation,

For Example:

i) Eclipse IDE Software - To Create and Run Java programs
ii) Selenium WebDriver for creating Test Scripts/Test Cases
iii) Java Standard edition / Core Java
iv) TestNG Testing Framework

Configure / Setup Selenium Environment
i) Download and Extract Eclipse IDE Software (based on our OS Environment, 
   ex: Windows 10 - 32 bit OS)

ii) Download (JDK) software (either from or and Install in our computer

iii) Set Environment Variable (Path Variable)
(In Oder to access Java software from any directory)

iv) Download Selenium WebDriver Java language binding from, and Add to Java Project in Eclipse IDE.

v) Download TestNG Testing Framework Software and Install from Eclipse IDE.

> Download Browser drivers and instantiate browser driver in our Test cases for Test execution
(You can use various browser drivers to conduct Cross Browser Testing)

8) Test Design in Selenium...

> You know we have four tools in our Selenium's tool suite,

> First take Selenium IDE, In Selenium IDE we create Test Cases using Element Locators and selenese Commands to write Test Cases, It supports Recording to Create Test Cases otherwise you can type Test Steps if know the Syntax...

> Second one, Selenium RC, It is Out dated, you no need to learn, and It was removed from latest versions of Selenium

> Third one, Selenium WebDriver, It is a power tool in Selenium's tool suite, nowadays most of the companies using this tool for Automated Testing, so focus
   more this tool,

Selenium WebDriver doesn't have IDE, so No Recording facility, we need to write code for every step,

> Using Element Locators and WebDriver Commands we can write Test cases,

> Using Programming features (either Java or Python etc...), Testing Framework 
(either JUnit or TestNG) we can enhance our Test cases...

> Last one Selenium Grid, Selenium Grid doesn't support Test Design, it is only for Test execution, using Selenium Grid we can conduct Parallel Testing.

Conclusion, Eliminate Selenium RC for Test Design, selenium Grid doesn’t' support, Next selenium IDE and Selenium WebDriver are only available for Test Design,

Selenium IDE is Proto type tool, no programming support etc..., so focus on, Selenium WebDriver...
Selenium Step by Step Videos...


Post a Comment