Automation Engineer

400+ Automation Engineer Interview Questions and Answers

Updated 2 Jul 2025
search-icon

Asked in ENroute

5d ago

Q. How long have you worked in the Test Automation position?

Ans.

I have worked in the Test Automation position for 5 years.

  • I have 5 years of experience in Test Automation.

  • I have successfully automated test cases for various projects.

  • I have expertise in using tools like Selenium, Appium, and JUnit.

  • I have worked on creating automation frameworks from scratch.

  • I have experience in integrating automation tests into CI/CD pipelines.

Q. How do you switch to a child window using Selenium?

Ans.

To move to a child window in Selenium, we need to switch to the window using window handles.

  • Get the window handle of the parent window using driver.getWindowHandle()

  • Get all the window handles using driver.getWindowHandles()

  • Switch to the child window using driver.switchTo().window(childWindowHandle)

  • Perform actions on the child window

  • Switch back to the parent window using driver.switchTo().window(parentWindowHandle)

1w ago

Q. What is No and and NC contact ? What is switch? What is motor? What is servo drive and Ac drive?

Ans.

NO and NC contacts are types of electrical switches. A motor is a device that converts electrical energy into mechanical energy. Servo and AC drives are motor controllers.

  • NO (Normally Open) and NC (Normally Closed) contacts are types of electrical switches used in control circuits.

  • A switch is an electrical component that can be used to make or break an electrical circuit.

  • A motor is a device that converts electrical energy into mechanical energy to perform work.

  • A servo drive i...read more

2w ago

Q. How do you automate Non-SQL Database systems?

Ans.

Non-SQL databases can be automated using programming languages and APIs.

  • Use programming languages like Python, Java, or Ruby to automate non-SQL databases.

  • Use APIs provided by the database vendor to automate database operations.

  • Create scripts to automate repetitive tasks like data backups, data migration, and data synchronization.

  • Use tools like Apache NiFi, Talend, or Pentaho to automate data integration and processing.

  • Automate database monitoring and alerting using tools lik...read more

Are these interview questions helpful?

Asked in Genpact

2w ago

Q. What is array list and linked list where used in ur framework

Ans.

Array list and linked list are data structures used in programming.

  • Array list is a dynamic array that can grow or shrink in size. It is used when random access is required.

  • Linked list is a collection of nodes where each node contains a reference to the next node. It is used when frequent insertions and deletions are required.

  • In automation frameworks, array list can be used to store test data or test steps while linked list can be used to implement a queue for test execution.

Asked in Blue Yonder

1w ago

Q. What is POM in Automation Framework?

Ans.

POM stands for Page Object Model. It is a design pattern used in automation testing to create a structured and maintainable framework.

  • POM separates the test scripts from the web elements, making the code more readable and reusable.

  • Each web page is represented as a separate class, containing its own web elements and methods.

  • POM improves test maintenance by reducing code duplication and enhancing code reusability.

  • It enhances collaboration between developers and testers as they ...read more

Automation Engineer Jobs

IBM India Pvt. Limited logo
Quality Engineer-Automation 4-9 years
IBM India Pvt. Limited
4.0
Pune
IBM India Pvt. Limited logo
Quality Engineer-Automation 2-6 years
IBM India Pvt. Limited
4.0
₹ 5 L/yr - ₹ 12 L/yr
(AmbitionBox estimate)
Pune
IBM India Pvt. Limited logo
Quality Engineer-Automation 2-6 years
IBM India Pvt. Limited
4.0
₹ 3 L/yr - ₹ 25 L/yr
(AmbitionBox estimate)
Bangalore / Bengaluru

Asked in Capgemini

1w ago

Q. How would you locate the XPath for the "Today's Deal" menu item on Amazon?

Ans.

To locate the Xpath for the 'Today's Deal' menu item on Amazon, inspect the element using browser developer tools.

  • Open the Amazon website and right-click on the 'Today's Deal' menu item.

  • Select 'Inspect' to open the browser developer tools.

  • Look for the HTML code corresponding to the 'Today's Deal' menu item.

  • Right-click on the HTML code and choose 'Copy' > 'Copy XPath'.

  • The copied XPath can be used to locate the 'Today's Deal' menu item in automation scripts.

Q. What is the median, how can it be found, and can you provide an example?

Ans.

The median is the middle value in a list of numbers when they are ordered from smallest to largest.

  • The median can be found by arranging the numbers in order and selecting the middle value. If there is an even number of values, the median is the average of the two middle values.

  • For example, in the list 2, 4, 6, 8, 10, the median is 6. In the list 1, 3, 5, 7, the median is 4.

  • The median is a measure of central tendency that is less affected by extreme values compared to the mean...read more

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Q. What steps are involved in the process of Exploratory Data Analysis (EDA)?

Ans.

Exploratory Data Analysis (EDA) involves steps like data cleaning, visualization, and statistical analysis.

  • Data cleaning to handle missing values and outliers

  • Visualization of data using plots like histograms, scatter plots, and box plots

  • Statistical analysis to understand relationships between variables

  • Identifying patterns and trends in the data

  • Creating summary statistics to describe the data

Asked in ZineOne

2d ago

Q. Does our CTC offering match your expectations?

Ans.

Yes, the CTC offering matches my expectation.

  • I have researched the industry standards and found that your offering is competitive.

  • The benefits and compensation package align with my expectations.

  • I am satisfied with the CTC offering discussed during the interview.

Asked in JCB

1w ago

Q. What is a PLC (Programmable Logic Controller)?

Ans.

PLC is a digital computer used for automation of electromechanical processes in industries.

  • PLC is a hardware device that receives inputs from sensors and other devices, processes them using a program, and then generates outputs to control machines or processes.

  • It is used in industries for automation of various processes such as assembly lines, packaging, and material handling.

  • PLCs can be programmed using ladder logic, function block diagrams, or structured text.

  • Examples of PL...read more

Asked in Blue Yonder

2w ago

Q. What is the UNIX command for copying a file?

Ans.

The UNIX command for copying a file is 'cp'.

  • The 'cp' command is used to create a copy of a file or directory.

  • The basic syntax of the 'cp' command is 'cp source_file destination_file'.

  • If the destination file already exists, it will be overwritten unless the '-i' option is used.

  • To copy a directory and its contents, the '-r' or '-R' option is used.

  • Examples: 'cp file1.txt file2.txt' or 'cp -r directory1 directory2'

Asked in LTIMindtree

1w ago

Q. What is the output of the following code? class A { int i = 10; } class B extends A { int i = 20; } public class test { public static void main(String[] args) { A a = new B(); System.out.println(a.i); } }

Ans.

The code will output 10 because the variable i is accessed through a reference of class A.

  • When a subclass object is assigned to a superclass reference, the superclass reference can only access the superclass members.

  • In this case, even though the object is of class B, the variable i is accessed from class A.

  • Output: 10

Q. If you have knowledge of how does a drive run and its conditions to start it and stop it safely will be advantageous

Ans.

Having knowledge of how a drive runs and its safe start and stop conditions is advantageous for an Automation Engineer.

  • Understanding the different types of drives and their functions

  • Knowing the safety protocols for starting and stopping drives

  • Familiarity with drive control systems and programming

  • Ability to troubleshoot drive issues and perform maintenance

  • Examples: AC drives, DC drives, servo drives, VFDs

Q. What is your approach for testing a single-page web application using Playwright?

Ans.

My approach involves writing automated tests using Playwright to simulate user interactions and verify functionality.

  • Identify key user flows and functionalities to be tested

  • Write test scripts using Playwright to interact with elements on the page

  • Include assertions to verify expected outcomes

  • Utilize Playwright's features like selectors, actions, and page objects for efficient testing

  • Run tests locally and on CI/CD pipelines for continuous integration

4d ago

Q. What is the Java Selenium code to validate the new price and old price of mobile phones on Amazon?

Ans.

Use Java Selenium code to validate new and old prices of mobile phones on Amazon.

  • Use WebDriver to open Amazon website

  • Locate the elements for new and old prices using XPath or CSS selectors

  • Get the text of both elements and compare them to validate

2w ago

Q. What comes first, grooming or sprint planning?

Ans.

Grooming comes before sprint planning.

  • Grooming is the process of refining the product backlog items and making them ready for sprint planning.

  • Sprint planning is the process of selecting the backlog items for the upcoming sprint and creating a plan for their implementation.

  • Grooming helps in identifying dependencies, clarifying requirements, and estimating the effort required for each backlog item.

  • Sprint planning builds on the output of grooming and involves the entire team in ...read more

1w ago

Q. How do you pass username and password to the system?

Ans.

Username & password can be passed to the system through various methods such as environment variables, configuration files, or user input.

  • Environment variables can be set and accessed through code

  • Configuration files can be read and parsed to retrieve login credentials

  • User input can be accepted through a GUI or command line interface

  • Encryption and secure storage should be used to protect sensitive information

Asked in SKF

1w ago

Q. Are Schneider PLC timers retentive? If not, how can you make them retentive?

Ans.

Schneider PLC timers are not retentive by default, but can be made retentive using the appropriate programming instructions.

  • Schneider PLC timers are not retentive by default

  • Retentive timers can be created using the RET instruction

  • The RET instruction stores the current timer value in a specified memory location

  • The stored value can be used to resume the timer from where it left off after a power cycle or program restart

Q. What are the types of testing, and can you briefly explain them?

Ans.

There are various types of testing such as unit testing, integration testing, system testing, acceptance testing, and regression testing.

  • Unit testing: Testing individual units or components of the software.

  • Integration testing: Testing how different units or components of the software work together.

  • System testing: Testing the entire system as a whole.

  • Acceptance testing: Testing whether the software meets the requirements and specifications of the client or end-user.

  • Regression ...read more

1w ago

Q. How many types of sensors have you used with PLC?

Ans.

I have used various types of sensors with PLC.

  • Proximity sensors

  • Temperature sensors

  • Pressure sensors

  • Level sensors

  • Flow sensors

  • Position sensors

  • Photoelectric sensors

  • Ultrasonic sensors

  • Humidity sensors

  • Gas sensors

2w ago

Q. How would you approach a complex task if assigned to you?

Ans.

I break down the complex task into smaller manageable parts, prioritize them, and use problem-solving skills to tackle each part effectively.

  • Break down the task into smaller components

  • Prioritize the components based on importance and dependencies

  • Utilize problem-solving skills to address each component effectively

  • Collaborate with team members for input and support

  • Regularly review progress and adjust strategies as needed

Q. How do you automate web interactions when the web elements are dynamic?

Ans.

Dynamic web elements can be automated using techniques like XPath, CSS selectors, and waiting strategies.

  • Use XPath or CSS selectors to locate elements based on their attributes rather than fixed locators.

  • Implement waiting strategies like explicit waits to handle dynamic loading of elements.

  • Utilize frameworks like Selenium WebDriver to interact with dynamic web elements efficiently.

Q. What is the difference between a browser context and a web browser?

Ans.

Browser context is a specific environment within a web browser where web pages are loaded and executed.

  • Browser context is a part of the web browser that includes the DOM, cookies, and other resources for a specific web page.

  • Multiple browser contexts can exist within a single web browser, allowing for isolation of web page resources.

  • Each browser context has its own set of cookies, local storage, and other data specific to that context.

  • For example, when using incognito mode in ...read more

Q. What is the difference between the == and === operators in programming?

Ans.

The == operator checks for equality of values, while the === operator checks for equality of values and data types.

  • The == operator performs type coercion before comparing two values, while the === operator does not.

  • For example, 5 == '5' would return true because the values are equal after type coercion, but 5 === '5' would return false because the data types are different.

  • Using === is generally considered safer and more reliable for strict equality checks in programming.

Asked in GEA Group

2w ago

Q. What are the different protocols used?

Ans.

Different protocols used in automation engineering

  • Modbus

  • Profibus

  • DeviceNet

  • Ethernet/IP

  • CANopen

  • AS-Interface

  • Foundation Fieldbus

  • HART

  • BACnet

  • LonWorks

1w ago

Q. How would you validate an API using Rest Assured? Write a script for it.

Ans.

Validating APIs using Rest Assured involves writing scripts to send requests and verify responses.

  • Use Rest Assured library to send HTTP requests and validate responses

  • Write test scripts using given(), when(), then() methods to set up request, send request, and validate response

  • Verify status code, response body, headers, etc. in the script

  • Use assertions to check expected values against actual values

Asked in Citicorp

2w ago

Q. Different use cases on Xceptor and Automation Anywhere

Ans.

Xceptor is used for data extraction and Automation Anywhere is used for automating repetitive tasks.

  • Xceptor is used in financial services for data extraction and processing.

  • Automation Anywhere is used for automating repetitive tasks like data entry, invoice processing, etc.

  • Xceptor can be used for reconciling trades and managing risk in financial services.

  • Automation Anywhere can be used for automating HR processes like onboarding and offboarding employees.

  • Xceptor can be used f...read more

Q. What are lists, tuples, and dictionaries in Python programming?

Ans.

Lists, tuples, and dictionaries are data structures in Python used to store collections of items.

  • Lists are mutable and ordered collections of items, accessed by index. Example: my_list = [1, 2, 3]

  • Tuples are immutable and ordered collections of items, accessed by index. Example: my_tuple = (1, 2, 3)

  • Dictionaries are unordered collections of key-value pairs, accessed by key. Example: my_dict = {'key': 'value'}

4d ago

Q. How do you select a VFD based on the motor?

Ans.

VFD selection depends on motor voltage, current, and power rating.

  • Check motor nameplate data for voltage, current, and power rating

  • Select VFD with compatible voltage and current rating

  • Ensure VFD power rating is equal to or greater than motor power rating

  • Consider additional features such as overload protection and communication protocols

  • Consult manufacturer's specifications and guidelines

Previous
1
2
3
4
5
6
7
Next

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Accenture Logo
3.8
 • 8.6k 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

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

Automation 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