Common Selenium interview question with answers can be found on this site. Being Senior QA Tester, I started to put together and continuously update interview question for Selenium test automation tool. These questions were asked during real QA interviews for Selenium QA Automation Engineer position in the leading companies. I believe that any QA Engineer, no matter seasoned one or novice one, would greatly benefits from this collection Selenium interview questions and tips. If you are plan to attend an interview you need to know the answers on these Selenium questions by heart. I provided answers on several technical interview questions, but you have to think how you would personally answer these questions. Finally, I would ask anyone of you to provide answers on unanswered Selenium interview question, so we all would benefit from this knowledge sharing and it would help us to land on Selenium QA Automation Engineer job and work successfully. If you were asked the interview question that is not in the list, post it with your answer.

Common Selenium interview questions for QA Engineers

HERE ARE THE SELENIUM INTERVIEW QUESTIONS:
Last updated on Januray 14, 2014

  • What is Selenium?
  • Selenium is a suite of tools for browser automation. It is composed of "IDE", a recording and playback mechanism, "WebDriver" and Remote Control "RC" which provide APIs for browser automation in a wide variety of languages, and "Grid", which allows many tests using the APIs to be run in parallel. QA Tester should not forget to mention during interview that with the release of Selenium 2, Selenium RC has been officially deprecated in favor of Selenium WebDriver. It works with most browsers, including Firefox 3.6 and the last, latest and next release of Firefox (currently Firefox 17-19); Internet Explorer 6 and up; Google Chrome; Safari 4 and 5; Android Ice Cream Sandwich and onward; and Opera 11.6+.

  • Describe technical problems that you had with Selenium tool?
  • As with any other type of test automation tools like SilkTest, HP QTP, Watir, Canoo Webtest, Selenium allows to record, edit, and debug tests cases. However there are several problems that seriously affect maintainability of recorded test cases, occasionally Quality Assurance Engineers complain that it takes more time to maintain automated test cases than to perform manual testing; however this is an issue with all automated testing tools and most likely related to improper testing framework design. Another problem is complex ID for an HTML element. If IDs is auto-generated, the recorder test cases may fail during playback. The work around is to use XPath to find required HTML element. Selenium supports AJAX without problems, but QA Tester should be aware that Selenium does not know when AJAX action is completed, so ClickAndWait will not work. Instead QA tester could use pause, but the snowballing effect of several 'pause' commands would really slow down total testing time of test cases. The best solution would be to use waitForElement.




  • What test can Selenium do?
  • Selenium could be used for the functional, regression, load testing of the web based applications. The automation tool could be implemented for post release validation with continuous integration tools like Jenkins, Hudson, QuickBuild or CruiseControl.

  • What is the price of Selenium license per server?
  • Selenium is open source software, released under the Apache 2.0 license and can be downloaded and used without charge.

  • How much does Selenium license cost per client machine?
  • Selenium is open source software, released under the Apache 2.0 license and can be downloaded and used without charge.

  • Where to download Selenium?
  • Selenium can be downloaded and installed for free from seleniumhq.org

  • What is the latest version of Selenium components?
  • The latest versions are Selenium IDE 2.5.0, Selenium Server (formerly the Selenium RC Server) 2.39.0, The Internet Explorer Driver Server 2.39.0, Selenium Client Drivers Java 2.39.0, Selenium Client Drivers C# 2.39.0, Selenium Client Drivers Ruby 2.39.0, Selenium Client Drivers Python 2.39.0.

  • What is Selenium IDE?
  • Selenium IDE is a Firefox add-on that records clicks, typing, and other actions to make a test cases, which QA Tester can play back in the Firefox browser or export to Selenium RC. Selenium IDE has the following features: record/play feature, debugging with step-by-step and breakpoints, page abstraction functionality, an extensibility capability allowing the use of add-ons or user extensions that expand the functionality of Selenium IDE
Selenium

  • What are the limitations of Selenium IDE?
  • Selenium IDE has many great features and is a fruitful and well-organized test automation tool for developing test cases, in the same time Selenium IDE is missing certain vital features of a testing tool: conditional statements, loops, logging functionality, exception handling, reporting functionality, database testing, re-execution of failed tests and screenshots taking capability. Selenium IDE doesn't for IE, Safari and Opera browsers.

  • What does SIDE stand for?
  • Selenium IDE. It was a very tricky interview question.

  • What is Selenium Remote Control (RC) tool?
  • Selenium Remote Control (RC) is the powerful solution for test cases that need more than simple browser actions and linear execution. Selenium-RC allows the developing of complex test scenarios like reading and writing files, querying a database, and emailing test reports. These tasks can be achieved by tweaking test cases in your preferred programming language. Selenium RC has been officially deprecated in favor of Selenium WebDriver.

  • What are the advantages using Selenium as testing tool?
  • If QA Tester would compare Selenium with HP QTP or Micro Focus SilkTest, QA Engineer would easily notice tremendous cost savings for Selenium. In contrast to expensive SilkTest license or QTP license, Selenium automation tool is absolutely free. It means that with almost no investment in purchasing tools, QA Team could easily build the state of the art test automation infrastructure. Selenium allows developing and executing test cases in various programming languages including .NET, Java, Perl, RubyPython, PHP and even HTML. This is a great Selenium advantage, most likely your software developers already know how to develop and maintain C# or Java code, so they transfer coding techniques and best practices to QA team. Selenium allows simple and powerful DOM-level testing and in the same time could be used for testing in the traditional waterfall or modern Agile environments. Selenium would be definitely a great fit for the continuous integration tools Jenkins, Hudson, CruiseControl, because it could be installed on the server testing box, and controlled remotely from continuous integration build.




  • What is Selenium Grid?
  • Selenium Grid extends Selenium RC to distribute your tests across multiple servers, saving you time by running tests in parallel.

  • What is Selenium WebDriver?
  • Selenium WebDriver is a tool for writing automated tests of websites. It is an API name and aims to mimic the behavior of a real user, and as such interacts with the HTML of the application. Selenium WebDriver is the successor of Selenium Remote Control which has been officially deprecated.

  • How many browsers are supported by Selenium IDE?
  • Test Engineer can record and playback test with Selenium IDE in Firefox.

  • Can Selenium test an application on iPhone's Mobile Safari browser?
  • Selenium should be able to handle Mobile Safari browser. There is experimental Selenium IPhone Driver for running tests on Mobile Safari on the iPhone, iPad and iPod Touch.

  • Can Selenium test an application on Android browser?
  • Selenium should be able to handle Android browser. There is experimental Selenium Android Driver for running tests in Android browser.

  • What are the disadvantages of using Selenium as testing tool?
  • Selenium weak points are tricky setup; dreary errors diagnosis; tests only web applications

  • How many browsers are supported by Selenium Remote Control?
  • QA Engineer can use Chrome, Firefox, IE, Safari and Opera browsers to run actual tests in Selenium RC.

  • How many programming languages can you use in Selenium RC?
  • Several programming languages are supported by Selenium Remote Control - C# Java Perl PHP Python Ruby

  • How many testing framework can QA Tester use in Selenium RC?
  • Testing frameworks aren't required, but they can be helpful if QA Tester wants to automate test cases. Selenium RC supports Bromine, JUnit, NUnit, RSpec (Ruby), Test::Unit (Ruby), TestNG (Java), unittest (Python).

  • How to developer Selenium Test Cases?
  • Using the Selenium IDE, QA Tester can record a test to comprehend the syntax of Selenium IDE commands, or to check the basic syntax for a specific type of user interface. Keep in mind that Selenium IDE recorder is not clever as QA Testers want it to be. Quality assurance team should never consider Selenium IDE as a "record, save, and run it" tool, all the time anticipate reworking a recorded test cases to make them maintainable in the future.

  • What programming language is best for writing Selenium tests?
  • The web applications may be written in Java, Ruby, PHP, Python or any other web framework. There are certain advantages for using the same language for writing test cases as application under test. For example, if the team already have the experience with Java, QA Tester could always get the piece of advice while mastering Selenium test cases in Java. Sometimes it is better to choose simpler programming language that will ultimately deliver better success. In this case QA testers can adopt easier programming languages, for example Ruby, much faster comparing with Java, and can become become experts as soon as possible.



  • Do you know any alternative test automation tools for Selenium?
  • Selenium appears to be the mainstream open source tool for browser side testing, but there are many alternatives. Canoo Webtest is a great Selenium alternative and it is probably the fastest automation tool. Another Selenium alternative is Watir, but in order to use Watir QA Tester has to learn Ruby. One more alternative to Selenium is Sahi, but is has confusing interface and small developers community.


  • Compare HP QTP vs Selenium?
  • When QA team considers acquiring test automation to assist in testing, one of the most critical decisions is what technologies or tools to use to automate the testing. The most obvious approach will be to look to the software market and evaluate a few test automation tools. Read Selenium vs QTP comparison



  • How can I learn to automate testing using Selenium?
  • Don't be surprised if the interviewer asks you to describe the approach for learning Selenium. This interviewer wants to hear how you can innovative software test automation process the company. Most likely they are looking for software professional with a good Selenium experience, who can do Selenium training for team members and get the team started with test automation. I hope this Selenium tutorial will be helpful in the preparation for this Selenium interview question.

to be continued

23 comments:

Anonymous said...

Thanks for this gr8 information for all of us

manisha0_0 said...

Hi,

These are helpful. Can you provide more indepth interview questions please?

Thanks.

Asha said...

HI,

Thanks for the useful information, Can you please advice on more interview questions?

Cheers

Anonymous said...

nice work

Mohammed Sikander said...

Hi,
I got few interview calls. They asked me what is the frame work you are using??
This is the most important question in think. Add this question in your blog.

Anonymous said...

Let me tell you all..these info is not much of use for an interview. Don't get wrong but interviewer never asked such silly things. They always ask practical implementation.

Manjesh said...

Anonymous, how many interview you already had? Why do you think that all interviewers always asked only practical implementation and what do you mean by practical implementation?

Amit said...

these selenium interview questions sounds reasonably good for me kindly post most more

Anonymous said...

I have been asked this question -
what is difference between assert and verify command in Selenium tool?

Anonymous said...

The point about interviewing is that you want someone that can give you intelligent answers to silly interview questions.

sathya said...

Very helpfull but need more depth.

Anonymous said...

kudos to the effort

Anonymous said...

As an interviewer I would never hire anyone who gives these bookish answers. These are just a collection of individual opinions from various blogs. Quite useless.

Anonymous said...

Great help :)

rocketvn said...

great questions, thanks a lot

Anonymous said...

Thanks a lot for the awesome stuff...

Anonymous said...

People, please do not think if you "master" these questions you are a candidate for an automation engineer. Mastering a product is good, but you need applicable experience. What problems have you solved with selenium? how do you design your tests to mitigate maintainability. Automating tests is like buidling software, treat it the same way. If you are interviewing for an automation job, expect to be asked the same types of questions as a web developer and/or progammer would.

Asha said...

Hi,

Can anyone answer these:

1.what framwork you are using for automation using selenium
2.Tellme about framework design, have you done that?
3.What approach you use to create/generate scrpits using selenium?
4.How are you customizing your scrpits?
5.How are you executing your scrpits, define the process?
6. What tool you are using for reporting your observations?
7. How are you handling exceptions?

Anonymous said...

Nice work!! thanks a lot for sharing this information.

Anonymous said...

This is very helpful for interview preparation and it gives a detailed overview of Selenium test tools. Nice work and a big thank you!

cherry said...

Thanks, but it will be good if all of us can add real time issues faced while working with tool?

Aditya

Anonymous said...

Two thumbs up my friend, what an excellent post and worthy of my comment of praise.

vidya.s.v said...

Thanks for such great information