Selenium Interview Questions

 

1. What is Automation Testing?

Automation testing is the process of testing a software or application using an automation testing tool to find the defects. In this process, executing the test scripts and generating the results are performed automatically by automation tools

2. What are the benefits of Automation Testing?

This is one of the common interview questions in any Automation testing job.

  1. Saves time and money. Automation testing is faster in execution.
  2. Reusability of code. Create one time and execute multiple times with less or no maintenance.
  3. Easy reporting. It generates automatic reports after test execution.
  4. Easy for compatibility testing. It enables parallel execution in the combination of different OS and browser environments.
  5. Low-cost maintenance. It is cheaper compared to manual testing in a long run.
  6. Automated testing is more reliable.
  7. Automated testing is more powerful and versatile. Automation tools allow us to integrate with
  8. It is mostly used for regression testing. Supports execution of repeated test cases.
  9. Minimal manual intervention. Test scripts can be run unattended.
  10. Maximum coverage. It helps to increase the test coverage. know more at Selenium online training
  11. 3. What are the challenges and limitations of Selenium WebDriver?

    As we all know Selenium WebDriver is a tool that automates the browser to mimic real user actions on the web. Selenium is a free open source testing tool. Some of the challenges with Selenium WebDriver are as follows

    1. We cannot test the windows application
    2. We cannot test mobile apps
    3. Limited reporting
    4. Handling dynamic Elements
    5. Handling page load
    6. Handling pop up windows
    7. Handling captcha
    8. 4. What type of tests have you automated?

      Our main focus is to automate test cases to do Sometimes based on the project and the test time estimation, we do focus on End to End testing.

    9. 5. How many test cases you have automated per day?

      It is one of the Selenium Tricky Interview Questions.

      Actually, it depends on Test case scenario complexity and length. I did automate 2-5 test scenarios per day when the complexity is limited. Sometimes just 1 or fewer test scenarios in a day when the complexity is high. know more at Selenium training

      6. What is a Framework?

      A framework defines a set of rules or best practices that we can follow in a systematic way to achieve the desired results. There are different types of automation frameworks and the most common ones are:

    10. 7. What type of test cases to be automated?

      Types of Test Cases To Automate are

      • Data-driven test cases
      • Test cases with higher complexity
      • Test case with many database updates
      • The test execution rate is high
      • Smoke/Critical tests
      • Tests with several combinations
      • Graph test cases
      • Higher manual execution time
    11. 8. What type of test cases not to be automated?

      Types of Test Cases Not To Be Automated are

      • Subjective Validation
      • New Functionalities
      • Strategic Development
      • User Experience
      • Complex Functionality
      • Quality Control
      • Low return on investment
      • Installation and setup testing

      Read in detail explanation

    12. 9. What are the advantages of the Test Automation Framework?

      1. Reusability of code.
      2. Easy reporting.
      3. Low-cost maintenance.
      4. Maximum Coverage
      5. Minimal manual intervention

      10. Have you created any Framework?

      If you are a beginner: You can say “No, I didn’t get a chance to create a framework from the scratch. I have used the framework which is already available. My contribution is mostly in creating test cases by using the existing framework.”

      If you are a beginner but have good knowledge of creating framework: You can say “Yes, I have involved in developing framework along with other automation testers in my company.”

      If you are an experienced tester: You can say “I have contributed to developing framework.” or You can say “Yes, I have created a framework from the scratch. There was no automation process in my previous company. I designed the framework from the scratch.”

      11. How would you explain the Selenium test automation framework in the interview?

      Here we have clearly explained each component of the Framework

    13. 12. Why do you prefer Selenium Automation Tool?

      I prefer Selenium Automation Tool because some of the benefits of Selenium to do automation testing are

      • Free and open source – It is a free open source tool. There is no need to allot budget for this tool
      • Help – Have large user base and helping communities.
      • Cross Platform compatibility – It works on platforms such as Windows, Linux, Mac.
      • Multiple programming languages – It supports programming languages such as  Phyton, Perl, Php, C#, Ruby, etc.,
      • Parallel Execution – Selenium Grid supports parallel execution of Selenium Scripts.
      • Continuous Integration – We can achieve nightly execution using Jenkins.
      • 13. What is Selenium?

        Selenium is an open source (free) automated testing suite to test web applications. It supports different platforms and browsers. It has gained a lot of popularity in terms of web-based automated testing and giving a great competition to the famous commercial tool HP QTP (Quick Test Professional) AKA HP UFT (Unified Functional Testing). know more at Selenium online training from India

        Selenium is a set of different software tools. Each tool has a different approach in supporting web based automation testing.

        It has four components namely,

        1. Selenium IDE (Selenium Integrated Development Environment)
        2. Selenium RC (Selenium Remote Control)
        3. Selenium WebDriver
        4. Selenium Grid

        14. What is Selenium IDE?

        Selenium IDE (Integrated Development Environment) is a Firefox plugin. It is the simplest framework in the Selenium Suite. It allows us to record and playback the scripts. Even though we can create scripts using Selenium IDE, we need to use Selenium RC or Selenium WebDriver to write more advanced and robust test cases.

        15. What is Selenese?

        Selenese is the language that is used to write test scripts in Selenium IDE.

        16. Which is the only browser that supports Selenium IDE to be used?

        Firefox and Chrome. However, as Selenium IDE is community-powered, regular updates and compatibility with new browser versions cannot be ensured.

        Back in 2017 when it no longer worked with Firefox’s latest version, users switched

        17. What is Selenium RC?

        Selenium RC AKA Selenium Remote control / Selenium 1. Selenium Remote Control was the main Selenium project for a long time before the WebDriver merge brought up Selenium 2. Selenium 1 is still actively supported (in maintenance mode). It relies on JavaScript for automation. It supports Java, Javascript, Ruby, PHP, Python, Perl, and C#. It supports almost every browser out there.

        18. What is Selenium WebDriver?

        Selenium WebDriver AKA Selenium 2 is a browser automation framework that accepts commands and sends them to a browser. It is implemented through a browser-specific driver. It controls the browser by directly communicating with it. Selenium WebDriver supports Java, C#, PHP, Python, Perl, Ruby.

        19. What is Selenium Grid?

        Selenium Grid is a tool used together with Selenium RC to run tests on different machines against different browsers in parallel. That is, running multiple tests at the same time against different machines running different browsers and operating systems.

        In simple words, it is used to distribute your test execution on multiple platforms and environments concurrently.

        20. When do you use Selenium Grid?

        Selenium Grid can be used to execute same or different test scripts on multiple platforms and browsers concurrently so as to achieve distributed test execution know more at Selenium online course

        21. What are the advantages of Selenium Grid?

        It allows running test cases in parallel thereby saving test execution time.
        It allows multi-browser testing
        It allows us to execute test cases on multi-platform

        22. What is a hub in Selenium Grid?

        A hub is a server or a central point that controls the test executions on different machines.

        23. What is a node in Selenium Grid?

        Node is the machine which is attached to the hub. There can be multiple nodes in Selenium Grid.

        24. What are the types of WebDriver APIs available in Selenium?

        • Firefox Driver
        • Gecko Driver
        • InternetExplorer Driver
        • Chrome Driver
        • HTMLUnit Driver
        • Opera Driver
        • Safari Driver
        • Android Driver
        • iPhone Driver
        • EventFiringWebDriver

        25. Which WebDriver implementation claims to be the fastest?

        The fastest implementation of WebDriver is the HTMLUnitDriver. It is because the HTMLUnitDriver does not execute tests in the browser. Starting a browser and running test cases took more time compared to running the scripts without a browser. HTMLUnitDriver took a simple HTTP request-response mechanism for test case execution.

Comments

Popular posts from this blog

What is Azure?

SharePoint Interview Questions

Selenium Interview Questions