Introduction to Selenium


Introduction to Selenium
 

1) What is Selenium?

2) History of the Selenium Project

3) Selenium's Tools Suite

    Selenium IDE
    Selenium RC
    Selenium WebDriver
    Selenium Grid
------------------
1) What is Selenium?
 

• Selenium is a suite of software tools to automate Web Browsers.

• It is an Open source suite of tools mainly used for Functional and Regression Test Automation.

• Selenium supports various Operating environments.

MS Windows

Linux

Macintosh etc...

• Selenium supports various Browsers.

Mozilla Firefox

IE

Google Chrome

Safari

Opera etc...

Note: Selenium IDE supports Mozilla Firefox only.

• Selenium supports various programming environments to write programs (Test scripts)

Java

C#

Python

Perl

Ruby

PHP
------------------------------------------------
2) History of the Selenium Project
 

• Selenium first came to life in 2004.

• In 2006, Selenium WebDriver was launched at Google.

• In 2008, the whole Selenium team decided to merge Selenium WebDriver with Selenium RC in order to form more powerful tool called Selenium 2.0

Selenium 1
(Selenium IDE + Selenium RC + Selenium Grid)

Selenium 2
(Selenium IDE + Selenium RC + Selenium WebDriver + Selenium Grid)
------------------------------------------------
3) Selenium's Tools Suite


i) Selenium IDE
 

It is a Firefox browser plug in, used to create and execute Test cases.

Selenium IDE Features:
 

• Create Test Cases, Test suites (We can Record test cases or type Test steps using element locators and Selenese commands)

• Edit Test Cases

• Execute Test cases, Test suites

• Debug Test Cases.

• Enhance Test Cases

• Export Test cases to other formats (java, ruby etc...)

Note: selenium IDE Test case default format is .html
--------------------------------------
Drawbacks of Selenium IDE
 

• It supports Mozilla Firefox browser only.

• It doesn't support Programming logic/features to enhance Test cases.

• It doesn't support Data Driven Testing.

• It is not suitable for complex test case design.

• No centralized maintenance of Objects/Elements
---------------------------------
ii) Selenium RC (* Out dated)

iii) Selenium WebDriver
 

• It is a Programming interface to create and execute Test cases.
----------------------------------------
Selenium IDE has IDE but doesn't have Programming interface

Selenium WebDriver has Programming interface but doesn't have IDE

UFT/QTP has both IDE as well as Programming interface
-----------------------------------
• Selenium WebDriver supports various programming environments to write programs.

Java,

C#

Perl

Python

Ruby

PHP

• Using Element/Object locators/properties and Webdriver Methods we can create and execute Test cases.

• Selenium Webdriver supports various browsers to create and execute test case/test script/test

Note: Browser driver varies from one browser to another.

• Selenium WebDriver supports various operating environments

MS Windows

Linux

Macintosh etc...
---------------------------
Drawback of Selenium WebDriver
 

• It doesn't generate detailed Test Reports.

• No centralized maintenance of Object/elements
------------------------------------------------
iv) Selenium Grid
 

• Selenium Grid is used to execute tests across multiple browsers, operating environments and machines in parallel.

• Selenium Grid 2 supports Selenium RC Tests as well as Selenium WebDriver Tests.
-------------------------------------------------
Focus on: 

----------
i) Selenium WebDriver to create Test cases using element locators and Webdriver methods.

ii) Java Programming to enhance test cases.

iii) TestNG Framework to group test cases, execute test batches and generate detailed test reports.
------------------------------------------

Introduction to Selenium Part-2 Link

31 comments:

I am an senior software test engineer.

From somany years i use to follow your videos.

very useful sir.
Thank you very much sending such a useful videos.

HI sir i am interested to join online class ,i want your contact address and number

Thanks for your valuable time in preparing the material for people who are very interested to learn.

Hello sir, i have gone through your total manual testing videos but sir can you please upload Quality assurance depth concept tutorial.

Hello G.C Reddy,
I am in Chicago & I use your videos a lot.
Thank you for the excellent materials on various subjects.

hello sir im saritha.
i doesn't know the selenium ...
but i saw u r videos, it is very usefull for me learning the selenium

Completely agree on the above comments. Thank You GC Reddy Sir for such valuable tutorials.

Sir Thanks a lot for uploading selenium videos.Its very helpful for the guys who can not afford course fees.

Hello Sir,

Your Selenium lessons are so valuable Sir. Thank you so much Sir!

hi i am intrested in selenium i want to learn selenium and i dont have time to take course outside . any suggestion can u give me

Thanks a lot Sir for sharing this excellent videos. These videos are very useful.

Hello Sir,
Thanks for uploading the videos. It helps a lot.

Hello Sir,
I am from the manual testing, But i am interested to learn the automation testing Now, Which tool is better now to learn as per the market demand. Kindly advise on this.

Hello Sir,
Thank you so much for sending more useful videos.It helps me lot in learning anout the slenium.

Thanks sir, very simplified explanation.

Thanks a lot for sharing these valuable video sir,

Those who want move from manual to selenium , this video shows the direction for those guys.

Thank u very much sir

Please keep upload video sir

Thanks a lot sir i watched your videos its too helpful for selenium learner, you done a fantastic work for us.

Hi sir i got an interview question like
li
a
li
a li
a
a
a
li li
a
The guy was asking what is xpath for 'a'

so myanser is i showed him xpath by inspectiong elements //magicdom/%&$# so what is proper answer for that please let me know

Hello Sir,

Thanks for your clear explanation. Unable to copy the text from the page. Please guide.

To copy the text (Class Notes), go to the Video Page, there I posted the notes as comment.

Sir very nice videos. Thank you so much

GC Reddy Sir No words simply superb. Very very less pupil are like you

After watching the first video of selenium, just wondering to learn the course. Looks very effective lesson. Thank you so much sir for publishing such a wonderful video for us. is there any way to have class not or pdf file what you just provided on the video? please forward to me if you have. skyman457@yahoo.com
Thanks

Sir, is that possible to have class note or pdf format? Please sir help me out. Thanks.

Post a Comment