Sunday 29 September 2013

Top 10 Selenium Interview question and Answers

Leave a Comment
Here this article is about Top 10 Selenium Interview question and Answers which are very useful for the seekers in the future when you attend interview regarding Selenium. These Question and answers are explained in a brief way and in a simple manner where the readers can understand easily without any difficulties. After reading these please share your testimonial with us. All the best




Introduction to Selenium

Selenium was created by Jason Huggins in 2004. Selenium is an open source web application Test Automation tool. Selenium is very easy to learn.  Anybody who worked on manual testing can easily learn Selenium. Selenium has three main tools Selenium IDE, Selenium RC, and Selenium Grid. In a simple way Selenium automates browsers.


1) Define Selenium?


Ans:Selenium is a set of tools which supports quick development of test automation scripts for web based applications. Selenium testing tools provides a rich set of testing functions specially designed to execute the needs of testing of a web based application.



2) What are the main components of Selenium testing tools?

Ans: Selenium IDE,
         Selenium RC
         Selenium Grid



3) What is Selenium IDE?

Ans: Selenium IDE is for building Selenium test cases. It operates as a Mozilla Firefox add on and provides an easy to use interface for developing and running individual test cases or entire test suites. Selenium IDE has a recording feature, which will keep account of user actions as they are performed and store them as a reusable script to play back.



4) Mention the use of context menu in Selenium IDE?

Ans:It allows the user to pick from a list of statement and verification's for the selected location.



5) Does tests recorded using Selenium IDE be run in other browsers?

Ans: Yes. Although Selenium IDE is a Firefox add on, however, tests created in it can also be run in other browsers by using Selenium Remote Control and specifying the name of the test suite in command line.



6) Define Selenium Grid?

Ans:Selenium Grid allows the Selenium RC solution to balance for test suites or test suites to be run in multiple environments. Selenium Grid multiple instances of Selenium RC are running on various operating system and browser configurations, each of these when launching register with a hub. When tests are sent to the hub they are then redirected to an available Selenium-RC, which will launch the browser and run the test. 



7) What are the Selenese Commands in Selenium?

Ans: Clicking a link - click or clickAndWait commands
Entering values - type command
Selecting options from a drop down listbox - select command
Clicking checkboxes or radio buttons - click command



8) Define Test Runner?

Ans: Test Runner allows us to run the test case in a browser loaded with the Selenium Core Test Runner.



9) What are the Advantages and Disadvantages of Selenium?

Ans: Advantages of Selenium:
Supports C#, Java, PHP, Perl, Phython
Supported on Windows, Linux and Mac OS
Highly active developer community - backed by Google
Powerful methods to locate elements (Xpath, CSS, DOM)
Disadvantages of Selenium:
Challenges running on browsers other than Firefox
Difficulty to automate AJAX
Limitations to automate Applets, MS and Desktop Applications




10) What are the locators available in Selenium?

Ans: ID
Name
Filters
DOM
CSS
Xpath
Read More...