Selenium Interview Questions and Answers Part-1

Selenium Interview Questions and Answers, Interview Questions on Selenium WebDriver, Java Programming, TestNG Testing Framework, Maven, Jenkins, and Selenium Automation Framework Design & Implementation.

Selenium Interview Questions and Answers for Fresher and Experienced.

1. What are the Test types supported by Selenium?

Basically Selenium supports Functional & Regression Testing of Web applications,

Basically Selenium supports Functional & Regression Testing of Web applications,

According to Selenium official web site (, It supports Functional Testing in System Testing Level and Functional Testing in Acceptance Testing Level.

Selenium also supports some sorts of Performance Testing (Load Testing and Stress Testing), but it is not recommended for the Performance Testing, because It was not designed for that. It was designed for Functional Testing of Computer web applications.

Selenium also supports BDD (Behavior Driven Development) and TDD (Test Driven Development) methodologies.

2. What are the important features of Selenium?

Selenium supports various Operating environments (MS Windows, Linux, Macintosh) to conduct Testing.

Selenium supports various Programming Languages (Java, Python, C#.Net, Ruby, JavaScript, and Kotlin) fro writing Test Cases

Selenium supports various Browsers (Google Chrome, Mozilla Firefox, MS Edge, Opera, and Safari) to execute the Test Cases.

Selenium supports Batch Testing, Data Driven Testing, Cross Browser Testing, and Database Testing.

Selenium supports Parallel Testing.

3. What is the most preferred Element locator by Selenium?

Selenium supports eight-element locators to locate/identify/recognize elements in web pages, they are,


If we find a unique id locator for any element then use the id locator for that element, it is quicker.

selenium tutorial

Selenium Tutorial for Beginners

4. What is the use of Testing Framework in Selenium?

We use Testing Framework (Basically Unit Test Framework) for Selenium as Test Runner. Using Testing Framework like JUnit or TestNG we can Create Test Batches, Prioritize Test Cases, Grouping Test Cases, Execute Test Batches, and Generate Test Reports.

5. How to Select a Testing Framework for Selenium?

In Selenium, Testing Framework selection depends on Programming platform that we selected for Selenium,

If Select Java for Selenium then supported Testing Frameworks are either JUnit or TestNG, suppose if we select Python for Selenium then supported Testing Frameworks are Robot or PyTest or PyUnit…

6. Is Selenium supports Acceptance Testing?

Yes, Selenium supports Acceptance Testing, but not all types of Testing in Acceptance Testing Level, it supports only Functional Testing in Acceptance Testing Level.

7. What are the advantages of Maven integration with Selenium?

Basically Maven is a Build Automation Tool for Java projects. In Selenium, it is for Test Environment setup and Maintenance of the Test Environment.

Advantages of Maven Integration with Selenium

i. Selenium Test Environment Setup
(Add software dependencies code to Maven POM XML of Maven Tool, then it downloads the software and configure.)

ii. Selenium Test Environment Maintenance
(Add new version/s of software dependencies, and then it can update the environment)

iii. Providing common configuration for all Team members

8. What is POM in Selenium?

POM (Page Object Model) is used for creating Object Repositories In Selenium, if we integrate Maven with Selenium, you can find one more POM (Project Object Model) for adding Software Dependencies in XML file of Maven Tool.

9. How to conduct Positive and Negative Testing using a single Test Case?

Using Selenium Data Driven Test Case we can conduct Positive and Negative Testing. We use valid input for Positive Testing and Invalid input for Negative Testing.

10. What is Selenium Licence?

Selenium is Open source software, but it has license called Apache 2.0, we can download Selenium and use it with free of cost, we can modify the Selenium source code and distribute it to others, but selling the modified code is not allowed, and it is the core objective of Apache 2.0 license.

11. What are the Prerequisites to write Selenium Test Cases?

Prerequisites to write Selenium Test Cases:

i. Manual Test Cases for Automation
ii. Web/HTML Element locators to locate elements in web pages
iii. Selenium WebDriver Commands/Methods for performing actions on the Elements.
iv. Programming features (Ex: Java or Python) to enhance Test Cases
v. Testing Framework (Ex: JUnit or TestNG) to create Test Batches, Prioritize Test Cases, Grouping Test Cases, and Inserting verification points, etc.

12. How to automate “Captcha” fields using Selenium?

According to Selenium Documentation, Automating Captcha (Verification Code) is a worst practice, the actual purpose of Captcha is to avoid Automation users, so it is not recommended to automate Captcha fields using Selenium.

13. Is Selenium supports Database Testing?

Basically Selenium doesn’t have any facility to communicate with Databases. Using the Programming Database connectivity feature (Ex: JDBC in Java) it can connect to Databases and conducts Database Testing.

14. How to handle “PopUp windows” using Selenium?

Selenium WebDriver offers the users with a very efficient way to handle Popups using Alert interface.

dismiss() – The dismiss() method clicks on the “Cancel” button as soon as the popup window appears.

accept() – The accept() method clicks on the “Ok” button as soon as the popup window appears.

getText() – The getText() method captures the error message from popup window.

15. What is Test independency?

Writing each Test as its own unit. Writing the tests in a way that will not be reliant on other tests to complete.

Selenium Interview Questions and Answers.

Dear Software Testing Professionals, you focus on the below Selenium topics:

1. Selenium Test Environment Setup

2. Inspecting and Locating HTML/Web Elements in web pages

3. Performing Actions on the Web Elements using Selenium WebDriver methods.

4. Enhancing Selenium Test cases using Programming (Ex: Java or Python…) concepts

5. Testing Framework (Ex: Junit or TestNG)Annotations, Attributes, and Assertion methods.

6. Selenium Automation Framework design & implementation (Ex: Keyword driven framework or Hybrid framework)

G C Reddy

G C Reddy, Working as a Software Testing Trainer in Hyderabad, India.

You may also like...