QA Engineer Automation QA.Selenium

10+ QA Engineer Automation QA.Selenium Interview Questions and Answers

Updated 12 Jul 2025
search-icon

Asked in Cisco

1d ago

Q. 1. Write a program to find second largest in an integer array. 2. Write a program to find denomination to get amount as 1976 for below {2000, 1000,500,200,100,50,20,10,5,1} If Amount :1976 Then it should return...

read more
Ans.

Programs to find second largest in an integer array and denomination to get amount.

  • For finding the second largest number, sort the array in descending order and return the second element.

  • For finding the denomination, loop through the array of denominations and keep dividing the amount until it becomes zero.

  • Use integer division to get the number of notes of each denomination.

Asked in Cisco

3d ago

Q. Difference between ArrayList and LinkedList. Different ways to iterate in list. (Syntax) List set map difference. Write an abstract class and its implementation. Challanges faced during automation. Different ty...

read more
Ans.

Questions related to Java and automation testing

  • ArrayList is implemented as a resizable array, while LinkedList is implemented as a doubly linked list

  • For loop, enhanced for loop, Iterator, ListIterator can be used to iterate through a list

  • List is an ordered collection, Set is an unordered collection, Map is a collection of key-value pairs

  • Abstract class cannot be instantiated, its implementation is done by extending it and providing implementation for its abstract methods

  • Chall...read more

Asked in Synechron

2d ago

Q. 1. Testng framework details 2. Difference btween string and stringbuilder 3. Current project framework details 4. POM

Ans.

Questions related to TestNG, String and StringBuilder, current project framework details, and POM.

  • TestNG is a testing framework for Java

  • String is immutable while StringBuilder is mutable

  • Current project framework details depend on the project

  • POM is a design pattern for creating object repositories

Asked in Infosys

5d ago

Q. What is the difference between an abstract class and an interface?

Ans.

Abstract classes are partially implemented classes while interfaces are fully abstract classes.

  • Abstract classes can have both implemented and abstract methods while interfaces can only have abstract methods.

  • A class can only inherit from one abstract class but can implement multiple interfaces.

  • Abstract classes can have constructors while interfaces cannot.

  • Abstract classes can have instance variables while interfaces cannot.

  • An abstract class can be used to define a base class f...read more

Are these interview questions helpful?

Asked in TCS

6d ago

Q. What is the difference between method overloading and method overriding?

Ans.

Overloading is having multiple methods with the same name but different parameters. Overriding is having a method in child class with the same name and signature as in parent class.

  • Overloading is compile-time polymorphism while overriding is runtime polymorphism

  • Overloading is used to provide different ways of calling the same method with different parameters

  • Overriding is used to provide a specific implementation of a method in a child class

  • Overloading can be done in the same ...read more

Asked in Cognizant

6d ago

Q. Types of waits, types of exceptions, oops concepts

Ans.

Answering types of waits, types of exceptions, and oops concepts for QA Engineer Automation QA.Selenium

  • Types of waits include implicit, explicit, and fluent waits

  • Types of exceptions include checked and unchecked exceptions

  • Oops concepts include inheritance, polymorphism, and encapsulation

Asked in BKT Tyres

6d ago

Q. What is heat transfer?

Ans.

Heat transfer is the movement of thermal energy from one object to another.

  • Heat can be transferred through conduction, convection, and radiation.

  • Conduction is the transfer of heat through a material without any movement of the material itself.

  • Convection is the transfer of heat through the movement of fluids or gases.

  • Radiation is the transfer of heat through electromagnetic waves.

  • Examples of heat transfer include cooking food on a stove, feeling the warmth of the sun on your s...read more

Asked in G4S

5d ago

Q. How do you identify locators using XPath and CSS?

Ans.

Locators can be identified using xpath and css for web element identification in Selenium automation testing.

  • XPath can be used to locate elements based on their XML path in the DOM.

  • CSS selectors can be used to locate elements based on their attributes, classes, or IDs.

  • XPath is more powerful but slower than CSS selectors.

  • Example: XPath - //input[@id='username']

  • Example: CSS - input#username

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Asked in Capgemini

3d ago

Q. Write code to take a screenshot in Selenium.

Ans.

TakeScreenshot method in Selenium captures a screenshot of the current web page.

  • Create an object of the TakesScreenshot interface

  • Use the getScreenshotAs() method to capture the screenshot

  • Save the screenshot to a file or display it in the console

Asked in Qualitest

2d ago

Q. Explain the framework you worked on.

Ans.

I have worked on a data-driven framework using Selenium WebDriver with TestNG for automation testing.

  • Used Page Object Model design pattern to separate test scripts from page objects

  • Implemented data-driven testing using Excel or CSV files to drive test data

  • Utilized TestNG annotations for test execution and reporting

  • Integrated with Jenkins for continuous integration and execution of test suites

2d ago

Q. What is density?

Ans.

Density is the measure of mass per unit volume of a substance.

  • Density is calculated by dividing the mass of an object by its volume.

  • It is a physical property that helps identify substances.

  • Different substances have different densities.

  • Density can be used to determine if an object will float or sink in a fluid.

  • Water has a density of 1 gram per cubic centimeter (g/cm³).

Asked in Capgemini

3d ago

Q. Tell me about different types of locators.

Ans.

There are several locators used in Selenium such as ID, Name, Class Name, Tag Name, Link Text, and Partial Link Text.

  • ID - unique identifier for an element

  • Name - name attribute of an element

  • Class Name - class attribute of an element

  • Tag Name - HTML tag name of an element

  • Link Text - exact text of a link element

  • Partial Link Text - partial text of a link element

Asked in Capgemini

1d ago

Q. Different design techniques

Ans.

Different design techniques for QA automation

  • Data-driven testing

  • Keyword-driven testing

  • Behavior-driven development

  • Model-based testing

  • Exploratory testing

Asked in Capgemini

4d ago

Q. Various Selenium components

Ans.

Selenium components for automation testing

  • Selenium WebDriver - main component for browser automation

  • Selenium IDE - record and playback tool for creating test cases

  • Selenium Grid - distribute tests across multiple machines

  • Selenium RC - deprecated component for browser automation

  • Selenium Server - used to run Selenium tests on remote machines

2d ago

Q. 3 small codes

Ans.

Provide 3 small codes for Automation QA using Selenium

  • Code to open a browser and navigate to a URL

  • Code to locate an element on a webpage and interact with it

  • Code to perform a basic assertion on a webpage

1d ago

Q. What is your current CTC and expected CTC?

Ans.

Current CTC is confidential. Expected CTC is based on industry standards and my experience.

  • Current CTC is confidential information and not typically shared during interviews.

  • Expected CTC is based on industry standards, job responsibilities, and my experience.

  • I am open to discussing compensation based on the job requirements and market rates.

Interview Experiences of Popular Companies

Infosys Logo
3.6
 • 7.9k Interviews
Cognizant Logo
3.7
 • 5.9k Interviews
Capgemini Logo
3.7
 • 5.1k Interviews
Cisco Logo
4.2
 • 386 Interviews
Synechron Logo
3.5
 • 379 Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
QA Engineer Automation QA.Selenium Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits