Saturday, 5 April 2014

Basic Selenium Tool Interview Questions & Answers

Question 1: What is Selenium?
Answer:
Selenium is a browser automation tool which lets you automated operations like – type, click, and selection from a drop down of a web page.
Question 2:
How is Selenium different from commercial browser automation tools?
Answer:
Selenium is a library which is available in a gamut of languages i.e. java, C#, python, ruby, php etc while most commercial tools are limited in their capabilities of being able to use just one language. More over many of those tools have their own proprietary language which is of little use outside the domain of those tools. Most commercial tools focus on record and replay while Selenium emphasis on using Selenium IDE (Selenium record and replay) tool only to get acquainted with Selenium working and then move on to more mature Selenium libraries like Remote control (Selenium 1.0) and Web Driver (Selenium 2.0).
Though most commercial tools have built in capabilities of test reporting, error recovery mechanisms and Selenium does not provide any such features by default. But given the rich set of languages available with Selenium it very easy to emulate such features.
Question3:
What are the set of tools available with Selenium?
Answer:
Selenium has four set of tools – Selenium IDE, Selenium 1.0 (Selenium RC), Selenium 2.0 (WebDriver) and Selenium Grid. Selenium Core is another tool but since it is available as part of Selenium IDE as well as Selenium 1.0, it is not used in isolation.
Question 4:
Which Selenium Tool should I use?
Answer:
It entirely boils down to where you stand today in terms of using Selenium. If you are entirely new to Selenium then you should begin with Selenium IDE to learn Selenium location strategies and then move to Selenium 2 as it is the most stable Selenium library and future of Selenium. Use Selenium Grid when you want to distribute your test across multiple devices. If you are already using Selenium 1.0 than you should begin to migrate your test scripts to Selenium 2.0
Question 5:
What is Selenium IDE?
Answer:
Selenium IDE is a firefox plug-in which is (by and large) used to record and replay test is firefox browser. Selenium IDE can be used only with firefox browser.
Question 6:
Which language is used in Selenium IDE?
Answer:
Selenium IDE uses html sort of language called Selenese. Though other languages (java, c#, php etc) cannot be used with Selenium IDE, Selenium IDE lets you convert test in these languages so that they could be used with Selenium 1.0 or Selenium 2.0
Question 7:
What is Selenium 1.0?
Answer:
Selenium 1.0 or Selenium Remote Control (popularly known as Selenium RC) is library available in wide variety of languages. The primary reason of advent of Selenium RC was incapability of Selenium IDE to execute tests in browser other than Selenium IDE and the programmatical limitations of language Selenese used in Selenium IDE.

Question 8:
What is Selenium 2.0?
Answer:
Selenium 2.0 also known as WebDriver is the latest offering of Selenium. It provides
·         better API than Selenium 1.0
·         does not suffer from java script security restriction which Selenium 1.0 does
·         supports more UI complicated UI operations like drag and drop

Question 9:
What are the element locators available with Selenium which could be used to locate elements on web page?
Answer:
There are mainly 4 locators used with Selenium –
·         html id
·         html name
·         XPath locator and
·         Css locators

Question 10:
What is Selenium Grid?
Answer:
Selenium grid lets you distribute your tests on multiple machines and all of them at the same time. Hence you can execute test on IE on Windows and Safari on Mac machine using the same test script (well, almost always). This greatly helps in reducing the time of test execution and provides quick feedback to stack holders.

18 comments:

  1. The Selenium interview question are very much useful My sincere thanks for sharing this post and please countinue to share this post
    Selenium Training in Chennai

    ReplyDelete
  2. really you have posted an informative blog. before i read this blog i didn't have any knowledge but now i got some knowledge about the technology. so keep on sharing such kind of an interesting blogs.
    selenium training in chennai

    ReplyDelete
  3. Nice compilation of selenium interview Question My sincere thanks for sharing this post and please continue to share this kind of post

    Selenium Training in Bangalore

    ReplyDelete
  4. Thanks for sharing this to our vision...It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me... Selenium Training in Chennai | Software Testing Training in Chennai

    ReplyDelete
  5. Nice blog, here I had an opportunity to learn something new in my field. I have an expectation about your future post so please keep updates...Thanks..
    Java Training in chennai | Best Java Training in chennai | Java Training Institutes in chennai

    ReplyDelete
  6. I really enjoy the blog.Much thanks again. Really Great selenium Online Course

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. Such an excellent and interesting blog, Do post like this more with more information, This was very useful, Thank you.
    airport ground staff training courses in chennai
    airport ground staff training in chennai
    ground staff training in chennai

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete