QA Engineer Automation QA.Selenium

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

Updated 17 Aug 2023

Popular Companies

search-icon

Q1. 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.

Q2. 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

Q3. 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

Q4. Difference between abstract and 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

Frequently asked in, ,
Are these interview questions helpful?

Q5. Difference between overloading and 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

Q6. 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

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Q7. 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

Q8. TakeScreenshot in selenium- code

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

QA Engineer Automation QA.Selenium Jobs

0

Q9. Explain about the framework 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

Q10. 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

Q11. 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³).

Q12. 1 tell me all 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

Q13. Different design techniques

Ans.

Different design techniques for QA automation

  • Data-driven testing

  • Keyword-driven testing

  • Behavior-driven development

  • Model-based testing

  • Exploratory testing

Q14. 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

Q15. 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

Q16. 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 Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.7
 • 7.3k Interviews
3.8
 • 5.4k Interviews
3.8
 • 4.6k Interviews
4.2
 • 384 Interviews
3.6
 • 337 Interviews
4.0
 • 93 Interviews
4.0
 • 86 Interviews
3.6
 • 28 Interviews
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

QA Engineer Automation QA.Selenium Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

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

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter