selenium-interview- questions

Top 15 Selenium Interview Questions With Answers

October 28, 2021

Automation testing and selenium framework is an in-demand career skill in the present times. While the recent graduates majorly want to go for software development as their career because of lack of awareness for automation testing as the upcoming growth field in the IT industry. Automation testing is basically for reducing human efforts and testing software through automated ways.

Why Is The Career In Automation Testing In-Demand?

selenium interview questions

Various software and application are being developed on a day-to-day basis they require testing at every step. If you are skilled with automation testing you can be hired easily in IT companies with high pay packages.

But, with the skill in hand, you also need to crack an interview to land up your dream job. Now, you might be thinking,

How To Prepare For An Selenium Interview Questions?

Don’t worry we have covered the automation testing and selenium interview questions for you to be well prepared before the interview and end up achieving your dream job.

1. What is automation testing?

Automation testing is a process of testing software in automated ways. Instead of human involvement, it takes the help of different tools to test software. The tools are used to write and execute test cases and do not require any human involvement.

2. What is selenium?

Selenium is an automated and portable testing framework that is used to test and validate applications across various browsers and platforms. The tool provides a playback tool to write functional test scripts even without the knowledge of the scripting language.

3. Name some of the commonly used automation testing tools that are used for Functional and non-functional automation.

Different tools that are commonly used for functional automation are:

  • Coded UI, by Microsoft
  • Quick Test Professional, by HP
  • Selenium
  • Watir
  • Testingwhiz
  • United Functional Testing
  • Tricentis Tosca
  • Worksoft certify
  • Ranorex

    Tools used for non-functional automation are:
  • Burp Site, by PortSwigger
  • performer
  • Load Complete
  • Load Runner, by HP
  • JMeter, by Apache
  • Acunetix

    4. Can you achieve 100% automation?

    No, 100% automation cannot be achieved because one needs to run a test manually at least once before turning to automation. There are many edge cases and some cases are executed rarely. Hence, these cases if automated will not add value to the automated systems and hence, 100% cannot be achieved.

5. What is the difference between “/” and “//” in XPath?

Single slash(/) is used to create an absolute path, in which the Xpath will be created to start the selection from the start node or document node.

Double slash(//) is used to create a relative path in which the Xpath will be created in a way to start selection from anywhere in the document.

6. What are the different components of Selenium?

Selenium is not just a tool but a group of software that have different ways for
software testing. The four components of Selenium include:

  • Selenium Integrated Development environment. (IDE): It is a completed integrated environment for the selenium tests.
  • Selenium Remote Control (RC): It allows writing test scripts in any programming language.
  • Web Driver: Comes after Selenium RC, Web Driver accepts the commands to transfer them to the browser.
  • Selenium Grid: It allows tests to use web browser instances running on remote machines.

    7. Does selenium require core java knowledge?

    No, Java is a very wide language and one doesn’t need to learn the whole language for Selenium Automated Testing. Selenium requires specific portions of Java-like structure, variables, language like if-else, classes, and objects, arrays, collections, and handling files.

    8.  List some of the test types that are supported by Selenium.

    The test type that is supported by Selenium is as follows,

  • Sanity Testing
  • Functional Testing
  • Responsive Testing
  • Cross Browser Testing
  • UI Testing
  • Regression Testing
  • Integration Testing

    9. What is the difference between findElement() and findElements()?

    findElement returns a single WebElement and is used to find the first element in the current page using the given ‘locating mechanism’.

    findElements returns a list of web elements and is used to find all the elements on the current page using the ‘locating mechanism’.

    10.  What is a data-driven framework in automation testing?

    A data-driven framework allows data to be stored in spreadsheet or table format. This becomes convenient for automation engineers to run the same test for different sets of data that can be input from external sources like excel or CSL files.




    11. What is Selenium Grid?

    Selenium Grid is a component from the suite of selenium software that allows you to spread your tests at the same time. Hence, you can run tests on different browsers like Chrome on Windows and Safari on Mac using the same test script.

    12. What are the different methods to refresh a web page in WebDriver?

    There exist three different methods to refresh a webpage in WebDriver

  • Driver.navigate.refresh command
  • Send Keys Command
  • command

    13. Mention is the difference between Selenium and Sikuli?

    The main difference exists in the HTML tag, but Sikuli proves itself better in many cases like Selenium does not automate flash objects like a video player or audio player but Sikuli can automate flash objects. Selenium can automate only web applications while Sikuli can automate both web applications and windows applications.

    14. Any kind of test which you think should not be automated?

    The tests that should not be automated include:

  • Tests that you would run only once
  • User experience tests
  • Tests that require random testing based on knowledge
  • Test that requires visual confirmation
  • Test that is needed to be run as soon as possible

    15. What are the top five commonly asked java programs in selenium interviews?

    Java Programmers that are commonly asked in selenium interviews:

  • Java programs to swap two numbers without using a third variable
  • Java program to find prime numbers
  • Java program to reverse numbers
  • Java program to print Fibonacci Series
  • Java program to find Armstrong number


    We have attempted to cover the most common and important interview question one needs to prepare for an automation testing interview. The interviews also include questions from the programming language that you have used to create the tool and also mainly question are asked around the framework you develop. The Selenium Automation Testing Interview Questions can be answered only when you have studied the test framework you have developed thoroughly. Hence, with the help of the above questions and knowledge of your framework, you can crack the interview and land up your dream job in automation testing.