div.menu4 { /*width:500px;margin:0 auto;*//*Uncomment this line to make the menu center-aligned.*/ text-align:center; font-size:0; height: 25px; *position:relative;*top:1px;/*Hacks for IE6 & IE7 */ } div.menu4 a { display: inline-block; margin-right:6px; /* It specifies the distance between each tab */ background:#FFF url(bg.gif) repeat-x 0 0; padding-left:4px; vertical-align:top;/*ChangeSet#1*/ text-decoration:none; } div.menu4 a span { display: inline-block; background:#FFF url(bg.gif) repeat-x 100% 0; padding: 0 20px; text-decoration:none; font: normal 12px Arial; line-height: 25px; color:#7087A9; vertical-align:top; } div.menu4 a:hover, div.menu4 a.current { background:#FFF url(bg.gif) repeat-x 0 -25px; line-height: 26px; } div.menu4 a:hover span, div.menu4 a.current span { background:#FFF url(bg.gif) repeat-x 100% -25px; line-height: 26px; color:#244D8A; } div.menu4sub { height:8px; border:1px solid #C2D5EF; background:#eee url(bg.gif) repeat-x 0 -50px; }

Wednesday, 9 March 2016

Online selenium training Sessions in Hyderabad



Selenium Training Hyderabad Main, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Hyderabad Main branch and it uses this 10 digit course code STO0000847 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0000847 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Secunderabad, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Secunderabad branch and it uses this 10 digit course code STO0000916 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0000916 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Osmangunj, Hyderabad, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Osmangunj, Hyderabad branch and it uses this 10 digit course code STO0001342 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0001342 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Market Street, Secunderabad, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Market Street. Secunderabad branch and it uses this 10 digit course code STO0001373 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0001373 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Hal Campus Balanagar, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Hal Campus Balanagar branch and it uses this 10 digit course code STO0001676 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0001676 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Shamshergunj, Hyderabad, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Shamshergunj, Hyderabad branch and it uses this 10 digit course code STO0001765 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0001765 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Charminar, Hyderabad, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Charminar, Hyderabad branch and it uses this 10 digit course code STO0001879 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0001879 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Old Mla Qtrs, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Old Mla Qtrs branch and it uses this 10 digit course code STO0001880 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0001880 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Overseas Branch Hyderabad, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Overseas Branch Hyderabad branch and it uses this 10 digit course code STO0001921 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0001921 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Agapura, Hyderabad, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Agapura, Hyderabad branch and it uses this 10 digit course code STO0001979 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0001979 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Ecil, Hyderabad, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Ecil, Hyderabad branch and it uses this 10 digit course code STO0002714 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0002714 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Gowliguda, Hyderabad, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Gowliguda, Hyderabad branch and it uses this 10 digit course code STO0002724 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0002724 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Hyderabad Airport, Hyderabad, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Hyderabad Airport, Hyderabad branch and it uses this 10 digit course code STO0002727 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0002727 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Hyderabad Public School Hyderabad, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Hyderabad Public School Hyderabad branch and it uses this 10 digit course code STO0002728 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0002728 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Parishrama Bhawan, Hyderabad, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Parishrama Bhawan, Hyderabad branch and it uses this 10 digit course code STO0002769 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0002769 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Padmarao Nagar, Hyderabad, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Padmarao Nagar, Hyderabad branch and it uses this 10 digit course code STO0002772 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0002772 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Bible House (r P Road), Secunderabad, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Bible House (r P Road), Secunderabad branch and it uses this 10 digit course code STO0002788 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0002788 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Pbb Red Hills, Hyderabad, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Pbb Red Hills, Hyderabad branch and it uses this 10 digit course code STO0002790 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0002790 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Trimulgherry, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Trimulgherry branch and it uses this 10 digit course code STO0002802 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0002802 while registering for the course to ensure you will get right Selenium tutorials.
Selenium Training Chandrayanagutta, Hyderabad Urban
Selenium Training Online provides Online Selenium training at Chandrayanagutta branch and it uses this 10 digit course code STO0003026 to identify Selenium testing trainer and batches information. All candidates must use this course code STO0003026 while registering for the course to ensure you will get right Selenium tutorials.

Monday, 7 March 2016

Introduction to Selenium IDE

What is Selenium IDE ?
Listed below are the four Selenium Automation tools :
1) Selenium IDE
2) Selenium RC
3) Selenium WebDriver
4) Selenium Grid
Selenium IDE is a firefox extension which will be used to record the tests like recording a movie and playback the recorded evaluations like enjoying a movie.Using Selenium IDE we can produce Selenium Automation Code without writing the code instead the code gets generated automatically when we report the evaluations using Selenium IDE.

Where as with Selenium RC and Selenium WebDriver applications we have to write the code ourselves.We use Selenium RC and Selenium WebDriver to write automation scripts for complex tasks where as Selenium IDE can exclusively be utilized to automate simple endeavors.
Can we dismiss Selenium IDE as we can automate all our evaluations using Selenium 1 and Selenium 2 ?
No, it's impossible to ignore Selenium IDE. It's the only selenium tool which has record and playback feature. Selenium 1 and Selenium 2 don't have this attribute. We could use Selenium IDE to automate simple job.

Why to record and playback ?You will find two reasons to record and play back.
Reason#1 - so as to automate simple scripts, the examiner may not require Selenium 1 and Selenium 2 tools, therefore examiner will simply record and playback using Selenium IDE.
Reason# 2 - While automating tests using Selenium 1 or Selenium 2, the tester may face difficulties while writing the automation scripts. In cases like this the tester will record and play back the test using the Selenium IDE tool and see the automation code generated by the device. He or she will examine his Selenium 1 or Selenium 2 self written code with Selenium IDE's automobile generated code, and make crucial changes to his Selenium Training1 or Selenium Training2 code in order to make it work.
Edges of Selenium IDE:
Simple for novices i.e. Needs less or no computer software development takes quite less time to automate. A superb way of learning Selenium Tutorial Script Syntax in your desirable programming language.
Minuses of Selenium IDE:
Not ideal for complex programs - Reason - If something say Application URL gets changed, we have to record each of the tests from the beginning. Where as in Selenium RC and Selenium WebDriver, we could change it from just one place such that the URL gets upgraded in most of the test automation scripts. So we can't maintain the scripts generated using Selenium IDE.
Repetition of the code - Reason - Lets say there are two evaluations. Test1 -">> Log In to Gmail, View Unread E-Mails and Logout. Test2 -">> Log-In to Gmail, Send Email and Logout. When we use Selenium IDE to record these tests it will create automation code for separate Login and Logout activities. So code is duplicated.

Where as in Selenium RC and Selenium WebDriver we can create automation code for Login & Logout actions and move them to Procedures/Functions. So Test1 will-call Login and Logout functions and also Test2 will call the same Login and Log Out functions. Hence code is just not repeated.
Code is not readable as it features Hard coded values - Reason - Selenium IDE records what ever what the Person performs while recording a test, thus the code contains Hard coded values. Lets say the User has recorded the Test -">> Log-In to Gmail with User Name - arunmotoori and Password - selenium143 using Selenium IDE.

When you browse the code which is automatically created by the Selenium IDE, it will feature the hard-coded values arunmotoori and selenium143. By reading the code we dont understand what arunmotoori and selenium Training. Were as in Selenium RC and Selenium WebDriver we can Parameterise these hard-coded values by replacing them with a valid variant names like Username and Password. Hence the code becomes readable.
Cannot produce constants - There aren't many constants like Program URL, User Names etc. Since the recorded code includes Hard Coded values, whenever some performance gets shifted say Application URL, we have to read all the recorded tests and make changes to all the tests including Hard coded Application URL.

But where-as in Selenium RC and Selenium WebDriver we can parameterise the hard coded values with readable variable names say Applicaition_URL in this event. These variants will be preserved as constants in an alternate spot. When the program URL adjustments in this case, we just update the saved persistent with new URL just once, thus no need to reading the code of all of the tests.
Data Driven evaluations usually are not possible - Suppose should you would like to run the exact same Evaluation say -">> Log-In to Gmail with say 100 different Customers. Using Selenium IDE you must record 100 tests (each test for every single User).

Instead in case you use Selenium RC or Selenium WebDriver you can make single test by parenthesizing the Consumer particulars in the evaluation. Thus it is possible to pass 100 User Names to precisely the same variable and run precisely the same test 100 occasions.
Hence Framework enactment is not potential - Automation Framework is a set of guidelines like 'Code re usability, 'Parametrization' etc. Therefore Framework implementation is not possible with Selenium IDE. It is possible with Selenium RC and Selenium WebDriver.

Validating elements using Selenium IDE
Going forward I'm-not going to describe Selenium IDE in depth as it is not required for just about any examiner to learn it completely. The subjects that I am going to describe in the upcoming posts will likely be sufficient for learning Selenium IDE.

Rather we are able to concentrate much on Selenium 2 which requires thorough knowledge. But without understanding the basic principles of Selenium IDE we cant go forward, as Selenium IDE basics are extremely very important to learn:

There are two mechanism for validating elements which are about the application under evaluation using Selenium IDE. In order to know what actually the validation means, please go through the below examples first:
Instances of Validations:
Example1: To check if the UI element exists or not on the Application. If the automation tool finds that the element is available on the application it results MOVE else it will result FAIL as output signal. (Moving forward I'm going to perform this kind of validations using Selenium IDE)
Example2: To check whether the concealed UI component is actually concealed. In the event the automation device finds this component is not concealed it results neglect else it'll result MOVE.
Two mechanism for validating components in Selenium IDE:
Maintain - This allows the test to check on if the component is really on the webpage. If it is unavailable then the test will cease on the step that failed and wont do the remaining measures.
Verify - This allows the test to check whether the component is to the page. If it is not available then the evaluation will fail the measure and carry on execution of the remaining measures.

Friday, 4 March 2016

20 Most Popularly Asked Selenium Interview Questions and Answers – Selenium Tutorial

Q1) What's Automation Testing?

Test Automation or Automation testing is a procedure for automating the manual procedure to check the program/system under evaluation. Automation testing does not need any guide intervention and includes use to another testing tool which enables you to create test scripts which may be executed frequently.

Q2) What would be the advantages of Automation Testing?

Advantages of Automation testing are:
  1. Supports performance of test cases that are continued
  2. In testing a big evaluation matrix hiv/AIDS
  3. Empowers concurrent execution
  4. Supports unattended execution
  5. Enhances precision thus reducing human created malfunctions
  6. Saves cash and time


Q3) Why should Selenium be chosen as a test program?

Selenium
  1. Is open as well as free source
  2. Have a big user base and communities that are supporting
  3. have Cross-Browser compatibility (Firefox, chrome, Ie, Safari etc.)
  4. have excellent platform compatibility (Windows, Macos, Linux etc.)
  5. supports several programming languages (Java, C#, Ruby, Python, Pearl etc.)
  6. Has routine and clean repository developments
  7. Supports testing that is dispersed


Q4) What is Selenium? Do you know the Selenium parts that are different?

Selenium is among the automated testing packages that are most popular. Inspire and selenium was made in a way to to guide automation testing of practical areas of internet based programs as well as an extensive array of platforms and browsers. 

As a result of its being in the open-source community, it's become among the very applications that are recognized amongst the screening specialists.

Selenium is not only a utility or one application, instead a program of several screening resources as well as for exactly the same reason it's called a Package. All the programs is designed to cater evaluation environment conditions and distinct testing.

The suite program makes up of these sets of resources:

  • Selenium Integrated Development Environment (IDE) - Selenium IDE is a a playback and record device. It's distributed as a Firefox Plug-In.
  • Selenium Remote-Control (RC) - Selenium RC is a host that enables user to produce test scripts in a programming language that is desirable. In addition, it enables running test scripts inside the big spectrum of browsers.
  • Selenium WebDriver - WebDriver is not the same tool completely that h-AS numerous advantages over Selenium RC. WebDriver utilizes its indigenous compatibility to automate and immediately communicates using the browser.
  • Selenium Grid - Selenium Grid is used to dole out your evaluation execution on environments and multiple systems concurrently.


Q5) What will be the testing kinds that may be supported by Selenium?

Selenium supports these kinds of testing:
  • Practical Testing
  • Regression Testing


Q6) What would be the limits of Selenium?

Following are the limits of Selenium:
  1. Selenium supports screening of internet that is only programs that are based
  2. Mobile software are unable to be analyzed using Selenium
  3. Bar and Captcha code readers are unable to be analyzed using Selenium
  4. Reports can only be created using third party software like Junit or TestNG.
  5. As Selenium is a totally free program, so there's absolutely no prepared seller support although user can locate numerous communities that are supporting.
  6. User is likely to possess previous programming language information.


Q7) When can I use Selenium IDE?

Selenium IDE is easiest and the most straightforward of all programs inside the Selenium Program. Play back feature and its record makes it extremely simple to understand to any programing language with minimum acquaintances. Selenium IDE is a great tool to get a user that is innocent.

Q8) What's Selenese?

Selenese is the language that will be used to to create test scripts in Selenium IDE.

Q9) What would be the various kinds of locators in Selenium?

Locator could be referred to as as a tackle that identifies a net component distinctively inside the web page. Therefore, to identify net components correctly and just we've got various kinds of locators in Selenium:
  1. ID
  2. ClassName
  3. Name
  4. TagName
  5. LinkText
  6. PartialLinkText
  7. Xpath
  8. CSS Selector
  9. DOM


Q10) What's difference between claim and confirm commands?

Claim: Maintain command tests whether the specified state is untrue or true. Let us say we declare not or whether the specified component exists on the website. In the event the situation is true then another evaluation measure will be executed by the software management however, if the status is false, the execution would cease and no additional evaluation could be ran.

Check: Check command additionally checks whether the specified state is untrue or true. Irrespective of the state being true or untrue, the application execution does not stops i.e. any failure during confirmation wouldn't halt the execution and all the evaluation measures would be performed.

Q11) What's an Xpath?

Xpath can be used to choose a net component according to its XML route. Transport, arrange and xML means Extensible Mark-Up Language and is utilized to save information. It stores information in a key-value pair that will be extremely just like HTML tags. Both being mark-up languages and Xpath may be used to find HTML components, because they come under below the exact same umbrella.

The behind finding components essential Xpath is the traversing between different components therefore and over the whole page enabling a person to locate a component together with the reference of some other component.

Q12) What's the dissimilarity between "/" and "//" in Xpath?

Single Slash "/" - Single slash is utilized to generate Xpath with complete path i.e. the xpath would be created to begin pick from the doc node/beginning node.

Double Slash "//" - Twice slash is utilized to generate Xpath with relative path i.e. the xpath would be created to begin pick from everywhere within the file.

Q13) What's Same origin policy and the way that it might be managed?

The problem of origin policy disallows to get the DOM of a file from an origin that differs from your source we're looking to gain access to the file.

Source is a serial mixture of host, system and port. As an example, to get a URL http:// http://www.softwaretestinghelp.com/sources/, the source is a mix of https, softwaretestinghelp.com, 80 correspondingly.

So the Selenium Core (Java Script System) cannot get the components from an origin that differs from where it had been found. For Instance. The other domain names like google.com, seleniumhq.org would no more be reachable.

Thus, to be able to take care of same origin coverage, Selenium Remote-Control was released.

Q14) When should I use Selenium Grid?

Selenium Grid can be utilized to perform different or same test scripts on browsers and several platforms concurrently in order to realize spread evaluation execution, preserving execution time unexpectedly and screening under different surroundings.

Q15) What do we imply by Selenium 1 and Selenium 2?

WebDriver and selenium RC, in a mixture are popularly called Selenium 2. Selenium RC alone is also referred as Selenium 1.

Q16) Which is the most recent Selenium program?

WebDriver

Q17) How do I start the browser utilizing WebDriver?
  1. This syntax may be used to establish Browser:
  2. WebDriver driver = new FirefoxDriver();
  3. WebDriver driver = new ChromeDriver();
  4. WebDriver driver = new InternetExplorerDriver();


Q18) What would be the various kinds of Drivers accessible WebDriver?

Different drivers accessible WebDriver are:
  1. FirefoxDriver
  2. InternetExplorerDriver
  3. ChromeDriver
  4. SafariDriver
  5. OperaDriver
  6. AndroidDriver
  7. IPhoneDriver
  8. HtmlUnitDriver


Q19) What would be the various kinds of waits accessible WebDriver?

There are two kinds of waits accessible WebDriver:
  1. Implied Delay
  2. Explicit Wait
  3. Implied Delay: Implied delays are used to supply a default waiting-time (say 30 seconds) between each successive evaluation measure/command over the whole test script. Therefore, following evaluation measure would simply do after running the last evaluation measure/command when the 30 seconds have elapsed.

Explicit Wait: Explicit waits are employed to prevent the execution the most time has elapsed or till the time a certain condition is satisfied. Unlike Implied delays, delays that were explicit are used to get a specific example just.

Q20) the Best Way To type in a text field using Selenium?

User can use sendKeys("String to be input") to input the string in the text entry box.

Syntax:
WebElement user-Name = drv.findElement(By.id("E-Mail"));
// inputting that is username
User name.sendKeys("sth");

Thursday, 25 February 2016

Introduction to Selenium

What  is Selenium?

Selenium is a free (opensource) automated testing package for internet applications across different browsers and platforms. It's very much like HP Quick Test Professional (QTP) just that Selenium targets automating internet-based programs.
Selenium isn't only a program that is single however a package of applications's, each catering to various testing requirements of a business. It h-AS four parts.
Selenium Integrated Development Environment (IDE)
Selenium Remote-Control (RC)
WebDriver
Selenium Grid


Right now, WebDriver and Selenium RC are unified into one framework to to make Selenium 2. Selenium 1, incidentally, refers to Selenium RC.

Who created Selenium?

Since Selenium is an assortment of tools that are distinct, it'd distinct programmers at the same time. Here are the key individuals who made noteworthy contributions to the Selenium Job
Mostly, Jason Huggins in 2004 created Selenium. A technologist at ThoughtWorks, he was operating on a web program that needed regular testing. 

Having recognized the repetitious testing of the application was becoming less and more efficient, he developed a Java Script software which will automatically handle the activities of the browser. He named this software as the "JavaScriptTestRunner."
Seeing potential in this notion to simply help internet apps that were other, JavaScriptRunner was created by him opensource which was afterwards renamed as Selenium Center.


Brief Introduction Selenium IDE

Selenium Integrated Development Environment (IDE) is the simplest framework in the Selenium package and is the easiest one to understand. 

This is a Firefox plugin that you could install as readily as you can with other plugins. But due to the simplicity, Selenium IDE should exclusively be utilized as a prototyping device. 

In the event you would like to create test cases that are more complex, you'll need to make use of either WebDriver or Selenium RC.

Short Introduction Selenium Remote-Control (Selenium RC)

Selenium RC was the main testing framework of the entire Selenium job to get quite a long time. 

Here is the primary web testing tool that enabled users to make use of a programming language they favor. As of variation 2.25.0, Remote Control can support the following programming languages:
Java

C#
PHP
Python
Perl
Ruby



Brief Introduction WebDriver


The WebDriver proves it self to be better than equally Selenium RC and Selenium IDE in many facets. It executes a secure and newer strategy in automating the activities of the browser. 
WebDriver, unlike Selenium RC, doesn't rely on Java Script for automation. By right conveying to it, it controls the browser.
The languages that are supported will be just like those in Selenium RC.
Java

C#
PHP
Python
Perl
Ruby


Selenium Grid


Selenium Grid is an instrument used jointly with Selenium RC to all run evaluations that are concurrent in once all across various browsers and different devices. Concurrent execution signifies working several tests simultaneously.

Attributes:

Empowers simultaneous running of evaluations in surroundings and several browsers.
Conserves time tremendously.
Uses the hub-and-nodes theory. The hub functions as a principal supply of Selenium commands to every node attached to to it.
The best way to Select the Best Selenium Tool For Your Own Need

Selenium IDE

-- To understand theories on Selenium and automatic screening, such as:
Commands such as sort, open up, clickAndWait, maintain, confirm, etc.
-- Locators etc., for example id, title, xpath selector
-- Running customized Java Script code using runScript
-- Exporting test cases in a variety of formats.
-- To create evaluations with minimum knowledge in programing.
-- To create test suites and straightforward test cases you can export after to WebDriver or Remote Control.
-- To examine a web application towards Firefox just.

Selenium RC

-- To design a test utilizing a much more expressive language than Selenese
-- To run your evaluation against different browsers (other than HtmlUnit) on different systems.
-- To deploy your evaluations across several environments utilizing Selenium Grid.
-- To test your program against a fresh browser that supports Java Script.
-- To examine web applications with sophisticated AJAX-based situations.

WebDriver

-- To make use of a programming language that is specific in creating your test suit.
-- To examine programs which are rich in AJAX-based functionalities.
-- To run evaluations to the HtmlUnit web browser.
-- To create custom-made evaluation results.

Selenium Grid

-- To run your Selenium RC scripts in several browsers and OS concurrently.
-- To run a test suite that is huge, that require to not finish impossible.

A Comparison between QTP and Selenium

Quick Test Professional(QTP) is a proprietary automatic screening device formerly possessed by the organization Mercury Interactive before it had been acquired by Hp in 2006. The Selenium Instrument Suite has several benefits over QTP (as of version 1 1) as detailed below -

Selenium
QTP
Open source, free to use, and free of charge.
Commercial.
Highly extensible
Limited add-ons
Can run tests across different browsers
Can only run tests in Firefox , Internet Explorerand Chrome
Supports various operating systems
Can only be used in Windows
Supports mobile devices
Supports mobile device using 3rd party software
Can execute tests while the browser is minimized
Needs to have the application under test to be visible on the desktop
Can execute tests in parallel.
Can only execute in parallel but using Quality Center which is again a paid product.

Advantages of QTP over Selenium


QTP
Selenium
Can test both web and desktop applications
Can only test web applications
Comes with a built-in object repository
Has no built-in object repository
Automates faster than Seleniumbecause it is a fully featured IDE.
Automates at a slower rate because it does not have a native IDE and only third party IDE can be used for development
Data-driven testing is easier to perform because it has built-in global and local data tables.
Data-driven testing is more cumbersome since you have to rely on the programming language's capabilities for setting values for your test data
Can access controls within the browser(such as the Favorites bar, Address bar, Back and Forward buttons, etc.)
Cannot access elements outside of the web application under test
Provides professional customer support
No official user support is being offered.
Has native capability to export test datainto external formats
Has no native capability to export runtime data onto external formats
Parameterization Support is in built
Parameterization can be done via programming but is difficult to implement.
Test Reports are generated automatically
No native support to generate test /bug reports.

Summary:

The complete Selenium Tutorial Instrument Suite is comprised of four parts:
Selenium IDE, a Firefox add on you could just use in creating comparatively straightforward test cases and test suites.
Selenium Remote-Control, also called Selenium 1, which will be the initial Selenium tool that enabled users in making sophisticated evaluations to make use of programming languages.
The more recent breakthrough which allows your test scripts to speak straight to the browser, WebDriver, thus controlling it from the os-level.
Selenium Gridis also a device which is used with Selenium RC to run evaluations that are concurrent across OS and different browsers.
WebDriver and selenium RC was united to to create Selenium 2.
Selenium is less disadvantageous than QTP in relation to flexibility and prices. In addition, it allows tests to run in parallel, unlike in QTP where you're simply permitted to to operate tests sequentially.