Site Loader
Auckland, New Zealand
1. What is Selenium ? Ans: 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 ? Ans: 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 ? Ans: 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 ? Ans : The Selenium Server provides Selenium-RC functionality, which is primarily used for Selenium 1.0 backwards compatability. Since WebDriver uses completely different technology to interact with the browsers, the Selenium Server is not needed. Selenium-WebDriver makes direct calls to the browser using each browser’s native support for automation. Selenium-RC however requires the Selenium- Server to inject javascript into the browser and to then translate messages from your test program’s language-specific Selenium client library into commands that invoke the javascript commands which in turn, automate the AUT from within the browser. In short, if you’re using Selenium-WebDriver, you don’t need the Selenium-Server. 5.What is Selenium Grid ? Ans: 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 ? Ans: 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 ? Ans: 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:
  • Annotations.
  • 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.
  8.How to find an Element in Web browser ? Ans: 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
  • ID
  • Name
  • Tag
  • Attribute
  • CSS
  • Linktext
  • PartialLinkText
  • Xpath etc
  9. How can I start writing some code and work with Application using Selenium ? Ans: You can start working with some code in selenium from here Thanks, Karthik KK

Post Author: Karthik kk

Leave a Reply

Your email address will not be published. Required fields are marked *