1. What is Selenium ?
Selenium is a Web Automation testing tool used to automate web based applications. Selenium has support of some of the largest browser vendors who have taken (or are taking) steps to make Selenium a native part of their browser (eg. Chrome as Chromium project). It is also the core technology in countless other browser automation tools, APIs and frameworks.
2. What are the version of Selenium available ?
As of now there are two major Versions of Selenium, Selenium 1.0 and Selenium 2.0, Selenium 2.0 has many improvement over its previous version. The primary new feature is the integration of the WebDriver API. The goal is to develop an object-oriented API that provides additional support for a larger number of browsers along with improved support for modern web-app testing problems. The latest version of selenium is 2.15 as of now and 2.16 is in alpha stage.
3.What is the difference between Selenium 1.0 and 2.0 ?
Selenium 2.0 has many improvement over 1.0 , the one which is very highlighting is Support of Webdriver, which provides a way of support to multiple browsers like IE,Firefox,Chrome etc.
4.What is the advantages of Webdriver over Selenium Server ?
5.What is Selenium Grid ?
Selenium Grid currently works in conjunction with Selenium Server. Selenium Grid provides a test to run sequentially to run in a single machine or run parallel in multiple machines. Using Selenium HUB and Selenium RC (Not just one, but multiple), one can achieve running same test in multiple machines as shown below. I will create a separate Article for working with Selenium Grid in later posts.
6.Does Selenium Webdriver supports Grid ?
Yes, the latest version of Selenium 2.15 supports Grid, this is called as Grid2. You can find the complete information on selenium grid2 and working with Grid2 from here
7.What is TestNG ?
TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use, such as:
8.How to find an Element in Web browser ?
- Run your tests in arbitrarily big thread pools with various policies available (all methods in their own thread, one thread per test class, etc…).
- Test that your code is multithread safe.
- Flexible test configuration.
- Support for data-driven testing (with @DataProvider).
- Support for parameters.
- Powerful execution model (no more TestSuite).
- Supported by a variety of tools and plug-ins (Eclipse, IDEA, Maven, etc…).
- Embeds BeanShell for further flexibility.
- Default JDK functions for runtime and logging (no dependencies).
- Dependent methods for application server testing.
Each and every object or control in a Web page in Selenium we call it as “Elements”. There are many ways to find an element in a Web page they are
9. How can I start writing some code and work with Application using Selenium ?
- Xpath etc
Ans: You can start working with some code in selenium from here