Automation Test Engineer

700+ Automation Test Engineer Interview Questions and Answers

Updated 9 Jul 2025
search-icon

Asked in Xoriant

6d ago

Q. Why am I getting an elementNotPresent exception even when the element is present on the page? Please explain.

Ans.

ElementNotPresent exception occurs even if element is present on page. Why?

  • The element may not be loaded yet, so wait for it to load before checking

  • The element may be hidden or not visible on the page

  • The element may have a different name or ID than expected

  • The element may be in an iframe or shadow DOM

  • The element may have been removed or deleted from the page

Asked in Mphasis

1w ago

Q. Can you create a static local variable inside a static method?

Ans.

Yes, a static local variable can be created inside a static method.

  • Yes, a static local variable can be declared inside a static method in programming languages like C++.

  • Static local variables retain their values between function calls.

  • Example: static void myStaticMethod() { static int count = 0; count++; }

Asked in Capgemini

2w ago

Q. How do you insert a value into a text box using an Excel sheet through Selenium?

Ans.

To insert value in text box using excel sheet through Selenium, we need to read data from excel and use sendKeys() method.

  • Read data from excel using Apache POI or JXL library

  • Identify the text box element using Selenium

  • Use sendKeys() method to insert the value from excel into the text box

Asked in Capgemini

2d ago

Q. What is agile methodology? What is CI CD pipe line?

Ans.

Agile methodology is an iterative approach to software development that emphasizes collaboration, flexibility, and customer satisfaction. CI/CD pipeline is a set of practices that automate the process of building, testing, and deploying software.

  • Agile methodology involves breaking down a project into smaller, more manageable pieces called sprints.

  • Each sprint involves a cross-functional team working together to deliver a working product increment.

  • CI/CD pipeline involves contin...read more

Are these interview questions helpful?
1w ago

Q. How do you configure Jenkins to point to a branch other than the master branch?

Ans.

To point to any other branch in Jenkins, use the 'Branch specifier' field in the 'Source Code Management' section.

  • In the Jenkins job configuration, go to the 'Source Code Management' section

  • Select the appropriate SCM tool (e.g. Git, SVN)

  • In the 'Branch specifier' field, enter the name of the branch you want to point to (e.g. 'develop', 'feature/xyz')

  • Save the configuration and run the job

Asked in AlgoShack

2w ago

Q. Automation * Taking Screenshots * Difference b/w selenium 3 & 4 * Selenium components * Frameworks & examples * Parallel execution

Ans.

The question is about automation testing, specifically focusing on taking screenshots, the differences between Selenium 3 and 4, Selenium components, frameworks and examples, and parallel execution.

  • Taking screenshots is a common practice in automation testing to capture the state of the application at a specific point in time.

  • Selenium 3 and 4 are different versions of the Selenium automation framework, with version 4 introducing new features and improvements.

  • Selenium componen...read more

Automation Test Engineer Jobs

Accenture Solutions Pvt Ltd logo
Test Automation Engineer 3-8 years
Accenture Solutions Pvt Ltd
3.7
₹ 4 L/yr - ₹ 14 L/yr
(AmbitionBox estimate)
Hyderabad / Secunderabad
Deloitte Consulting logo
Automation Test Engineer 3-8 years
Deloitte Consulting
3.7
Chennai
Schneider Electric India  Pvt. Ltd. logo
Test Automation Engineer 1-5 years
Schneider Electric India Pvt. Ltd.
4.1
₹ 4 L/yr - ₹ 10 L/yr
(AmbitionBox estimate)
Bangalore / Bengaluru

Asked in TCS

1w ago

Q. Which JavaScript commands have you used in Selenium?

Ans.

I have used various javascript commands in Selenium such as executeScript, executeAsyncScript, etc.

  • executeScript() method is used to execute JavaScript code in the context of the currently selected frame or window.

  • executeAsyncScript() method is used to execute asynchronous JavaScript code in the context of the currently selected frame or window.

  • Other commonly used JavaScript commands in Selenium include getElementById(), getElementsByClassName(), etc.

Asked in Cognizant

1w ago

Q. What are some popular tools used for automation testing?

Ans.

Popular tools for automation testing include Selenium, Appium, JMeter, and TestComplete.

  • Selenium: widely used for web application testing

  • Appium: used for mobile application testing

  • JMeter: used for load testing and performance testing

  • TestComplete: used for desktop application testing

  • Other popular tools include Katalon Studio, Robot Framework, and Cucumber

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Asked in Globant

2w ago

Q. How do you scroll on a mobile device using automation?

Ans.

Scrolling in mobile can be done using swipe or touch actions.

  • Use swipe or touch actions to scroll in mobile automation

  • For swipe action, use swipe method with start and end coordinates

  • For touch action, use press and move methods with start and end coordinates

  • Example: driver.swipe(startX, startY, endX, endY, duration)

  • Example: TouchAction(driver).press(startX, startY).moveTo(endX, endY).release().perform()

Asked in Capgemini

2w ago

Q. How will you track tasks in Jira?

Ans.

To track tasks in Jira, I will create issues, assign them to team members, set priorities, and update their status.

  • Create issues in Jira for each task

  • Assign the issues to team members

  • Set priorities for each issue

  • Update the status of each issue as it progresses

  • Use Jira's reporting features to track progress and identify bottlenecks

Asked in Capgemini

6d ago

Q. What do you mean by automation testing?

Ans.

Automation testing refers to the use of software tools to execute pre-scripted tests on a software application.

  • Automation testing involves writing scripts to automate repetitive manual testing tasks

  • It helps in reducing the time and effort required for testing

  • It improves the accuracy and reliability of testing results

  • Examples of automation testing tools include Selenium, Appium, and TestComplete

1w ago

Q. What is the design pattern used in your framework?

Ans.

I don't have the available data to answer this question.

  • N/A

1w ago

Q. Write an SQL query to get the 10th highest salary from the employee table.

Ans.

SQL query to get the 10th highest salary from employee table

  • Use ORDER BY and LIMIT clauses

  • Subquery can be used to get the 10th highest salary

Asked in Coforge

1w ago

Q. 1. Explain encapsulation, abstraction 2. Selenium locate dropdown question 3. Appium configuration questions

Ans.

Interview questions for Automation Test Engineer on encapsulation, abstraction, Selenium dropdown and Appium configuration.

  • Encapsulation is the process of hiding implementation details from the user.

  • Abstraction is the process of hiding unnecessary details from the user.

  • Selenium can locate dropdown using Select class and its methods.

  • Appium configuration questions may include setting up desired capabilities, specifying app path, device name, platform name, etc.

Asked in Globant

2w ago

Q. How do you take a screenshot in Selenium?

Ans.

To take a screenshot in Selenium, use the getScreenshotAs() method.

  • Create an object of the TakesScreenshot interface

  • Use the getScreenshotAs() method to capture the screenshot

  • Save the screenshot to a desired location using the File class

1w ago

Q. What is abstraction, and what are the differences between an interface and an abstract class?

Ans.

Abstraction is a way of hiding implementation details. An interface is a contract that specifies the behavior of a class.

  • Abstraction is achieved through abstract classes and interfaces

  • Abstract classes can have both abstract and non-abstract methods

  • Interfaces can only have abstract methods and constants

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

  • Abstract classes can have constructors but interfaces cannot

  • Example: An abstract class 'Ani...read more

2w ago

Q. What is Maven and explain its structure?

Ans.

Maven is a build automation tool used primarily for Java projects.

  • Maven uses a Project Object Model (POM) to manage dependencies and build process

  • It uses a central repository to download dependencies

  • Maven has a defined directory structure for projects

  • Plugins can be added to extend Maven's functionality

1w ago

Q. Write a program to count the number of integers and characters in a given string. Input: "nAJh4837sj"

Ans.

A program to count the number of integers and characters in a given string.

  • Iterate through each character in the string and check if it is an integer or a character.

  • Use isdigit() function to check if a character is an integer.

  • Keep separate counters for integers and characters.

  • Return the counts of integers and characters at the end.

2w ago

Q. Given a string input = "Achiever2025," how can you separate the alphabets and digits from the input?

Ans.

Separate alphabets and digits from a given string input.

  • Iterate through each character in the input string

  • Check if the character is a letter or a digit using built-in functions like isalpha() and isdigit()

  • Create separate arrays for alphabets and digits and store the characters accordingly

1w ago

Q. What is the significance of the public static void main(String arv[]) method in Java?

Ans.

The public static void main(String arv[]) method is the entry point of a Java program, where execution begins.

  • The 'public' keyword allows the method to be accessed from outside the class.

  • The 'static' keyword allows the method to be called without creating an instance of the class.

  • The 'void' keyword indicates that the method does not return any value.

  • The 'main' method is the starting point of execution for a Java program.

  • The 'String[] args' parameter allows command-line argume...read more

Asked in TCS

2w ago

Q. What are all the exceptions that you know in selenium and define real time exam which situation does exception occur?

Ans.

Some exceptions in Selenium are NoSuchElementException, TimeoutException, StaleElementReferenceException.

  • NoSuchElementException occurs when an element is not found in the DOM.

  • TimeoutException occurs when a command takes longer than the timeout value to complete.

  • StaleElementReferenceException occurs when a referenced element is no longer attached to the DOM.

2w ago

Q. Write a Java program to find the maximum profit from buying and selling books given an array of book prices for each day of the week. You can buy a book on any day and sell it on any subsequent day.

Ans.

Java program to find maximum profit from buying and selling books on different days.

  • Create an array to store the prices of books on different days

  • Iterate through the array to find the maximum profit by buying on one day and selling on another

  • Calculate profit by subtracting buying price from selling price

  • Return the maximum profit obtained

Asked in Infosys

2w ago

Q. What are the challenges of using Selenium?

Ans.

Challenges in Selenium include browser compatibility, dynamic elements, and test maintenance.

  • Browser compatibility issues can arise due to differences in browser versions and configurations.

  • Dynamic elements can cause tests to fail if not handled properly.

  • Test maintenance can be challenging due to changes in the application under test.

  • Synchronization issues can occur when the test script runs faster than the application.

  • Handling pop-ups and alerts can be tricky.

  • Cross-domain te...read more

Asked in Pixel

1w ago

Q. What automation frameworks have you used in your projects?

Ans.

We used a hybrid automation framework that combined data-driven and keyword-driven approaches.

  • The framework was built using Selenium WebDriver and TestNG.

  • We used Excel sheets to store test data and Apache POI library to read/write data from/to Excel.

  • The framework had reusable functions and libraries for common actions like login, logout, etc.

  • We also used Jenkins for continuous integration and execution of automated tests.

  • The framework was designed to be scalable and maintaina...read more

Asked in Infosys

2d ago

Q. How do you handle broken links in Selenium?

Ans.

To handle broken links in Selenium, we can use the HTTPURLConnection class to check the response code of the link.

  • Get all the links on the page using findElements() method

  • Iterate through each link and get the href attribute

  • Create a URL object for the href attribute

  • Open a connection using HTTPURLConnection class

  • Get the response code using getResponseCode() method

  • If the response code is not 200, mark the link as broken

Asked in AlphaSense

2w ago

Q. How would you implement login functionality with multiple credentials stored in an Excel sheet?

Ans.

Multiple credentials can be logged in using data from an excel sheet.

  • Read the excel sheet using a library like Apache POI

  • Iterate through the rows and columns to get the data

  • Use a loop to login with each set of credentials

  • Assert the login success or failure for each set of credentials

Asked in Mphasis

2w ago

Q. What is the memory allocation for a String?

Ans.

String memory allocation is dynamic and depends on the length of the string.

  • String memory allocation is dynamic and can change based on the length of the string.

  • In Java, a String object is stored in the heap memory.

  • Each character in a String typically takes up 2 bytes of memory.

  • String objects in Java are immutable, meaning once a String object is created, it cannot be changed.

Asked in LTIMindtree

1w ago

Q. Write a program to print all even numbers in an array in the format: {2,4,6}.

Ans.

Print even numbers in array without curly braces.

  • Iterate through array and check if each element is even.

  • If element is even, add it to a new array of strings.

  • Join the elements of new array with commas to form final output.

Asked in Capgemini

1w ago

Q. How would you take a backup of a table and insert the values into the same table in another database?

Ans.

To take backup of a table and insert values in the same table of another database.

  • Use SQL Server Management Studio to take backup of the table

  • Restore the backup in the target database

  • Use SQL queries to insert values from source table to target table

Asked in LTIMindtree

1w ago

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

Ans.

Abstract class is a class that cannot be instantiated while abstract method is a method without implementation.

  • Abstract class can have both abstract and non-abstract methods while abstract method can only exist in an abstract class or interface.

  • Abstract class can have constructors while abstract method cannot.

  • Abstract class can provide default implementation for its non-abstract methods while abstract method cannot.

  • Example of abstract class: Animal class with abstract method ...read more

Previous
1
2
3
4
5
6
7
Next

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Accenture Logo
3.7
 • 8.7k Interviews
Infosys Logo
3.6
 • 7.9k Interviews
Wipro Logo
3.7
 • 6.1k Interviews
Cognizant Logo
3.7
 • 5.9k Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Automation Test Engineer 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