Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by Capgemini Team. If you also belong to the team, you can get access from here

Capgemini Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

Capgemini Automation Engineer Interview Questions and Answers

Updated 25 Jan 2025

19 Interview questions

An Automation Engineer was asked 5mo ago
Q. What is the difference between str1==str2 and str1.equals(str2)?
Ans. 

str1==str2 compares the memory addresses of the two strings, while str1.equals(str2) compares the actual contents of the strings.

  • str1==str2 checks if the two string variables point to the same memory location.

  • str1.equals(str2) compares the actual characters in the strings for equality.

  • Example: String str1 = "hello"; String str2 = "hello"; str1==str2 will return false, but str1.equals(str2) will return true.

An Automation Engineer was asked 5mo ago
Q. Write code to implement a Robot class in Java.
Ans. 

Implementing a Robot class in Java

  • Create a Robot class with attributes like name, batteryLevel, etc.

  • Include methods for moving, turning, and charging the robot

  • Use inheritance if needed for different types of robots

Automation Engineer Interview Questions Asked at Other Companies

asked in GEA Group
Q1. 16) What is modbus ? Types of modbus? How many slaves we can conn ... read more
Q2. 1. Explain oops concepts in coding. 2. Write a program to find mi ... read more
asked in Blue Yonder
Q3. What is the difference between Absolute and Relative XPaths?
asked in GEA Group
Q4. What is the ASI protocol? How many slaves can be connected to one ... read more
Q5. Write a program to find the number of palindrome words in a given ... read more
An Automation Engineer was asked 5mo ago
Q. What will be the memory allocation for the code: String str1 = "Automation"; String str2 = new String("Automation");
Ans. 

str1 will be stored in the string pool while str2 will be stored in the heap memory.

  • str1 will be stored in the string pool, which is a part of the heap memory.

  • str2 will create a new String object in the heap memory, separate from the string pool.

An Automation Engineer was asked 6mo ago
Q. What does __init__ stand for in a Python class?
Ans. 

__init__ is a special method in Python classes that initializes object attributes upon creation.

  • __init__ is known as the constructor method in Python classes.

  • It is called automatically when a new object of the class is created.

  • You can define parameters in __init__ to set initial values for object attributes.

  • Example: class Person: def __init__(self, name): self.name = name creates a Person object with a name attrib...

What people are saying about Capgemini

View All
thrivingsnapdragon
1d
works at
Accenture
Need feedback regarding One Finance BU at Capgemini
I am planning to join the One Finance Transformation team under Group IT at Capgemini. Can you please provide some insights if it is a good option to join in terms of learning, career progression and monetary benefits? Thanks.
Got a question about Capgemini?
Ask anonymously on communities.
An Automation Engineer was asked 6mo ago
Q. How do you achieve encapsulation in Python?
Ans. 

Encapsulation in Python is achieved through private and protected attributes and methods, promoting data hiding and abstraction.

  • Use a single underscore (_) before an attribute name to indicate it is protected: `self._protected_var`.

  • Use a double underscore (__) before an attribute name to make it private: `self.__private_var`.

  • Access private attributes through getter and setter methods to control access and modifica...

An Automation Engineer was asked 7mo ago
Q. What is the difference between @BeforeMethod and @BeforeTest?
Ans. 

The @BeforeMethod annotation is used to run a method before each test method in a class, while @BeforeTest is used to run a method before any test method in a test tag.

  • The @BeforeMethod annotation is specific to TestNG framework and is used to initialize test data before each test method.

  • @BeforeTest annotation is also specific to TestNG and is used to initialize test data before any test method in a test tag.

  • If a ...

An Automation Engineer was asked 7mo ago
Q. What are the methods of the Select class?
Ans. 

Select class methods are used to retrieve elements based on various criteria in automation testing frameworks.

  • findElement: Locates a single element. Example: driver.findElement(By.id('username'));

  • findElements: Locates multiple elements. Example: driver.findElements(By.className('btn'));

  • selectByVisibleText: Selects an option from a dropdown by visible text. Example: select.selectByVisibleText('Option 1');

  • selectByVa...

Are these interview questions helpful?
An Automation Engineer was asked 7mo ago
Q. What is the difference between get and navigate.to?
Ans. 

get() loads a URL directly, while navigate.to() allows for more complex navigation options.

  • get() is a straightforward method to load a specific URL.

  • Example: driver.get('http://example.com') loads the page immediately.

  • navigate.to() can be used for more complex navigation scenarios.

  • Example: driver.navigate().to('http://example.com') allows for back and forward navigation.

  • navigate.to() can be part of a sequence of na...

An Automation Engineer was asked 7mo ago
Q. Why was TestNG used?
Ans. 

TestNG was used for automated testing in order to facilitate easy test case management, parallel execution, and reporting.

  • TestNG allows for easy grouping and prioritization of test cases.

  • It supports parallel execution of test cases, improving efficiency.

  • TestNG provides detailed test reports, making it easier to identify and debug issues.

  • Annotations in TestNG help in defining the test methods and their dependencies...

🔥 Asked by recruiter 5 times
An Automation Engineer was asked 7mo ago
Q. Explain the framework.
Ans. 

A framework is a set of guidelines, coding standards, concepts, and practices to help automate testing efficiently.

  • Framework provides a structure for organizing test scripts, data, and reusable components.

  • It helps in maintaining consistency and reusability of test scripts.

  • Frameworks can be data-driven, keyword-driven, or hybrid depending on the requirements.

  • Examples of frameworks include Selenium WebDriver, TestNG...

Capgemini Automation Engineer Interview Experiences

18 interviews found

Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I appeared for an interview in Dec 2024.

Round 1 - Technical 

(7 Questions)

  • Q1. Write code to implement and explicit wait in Selenium
  • Ans. 

    Implementing an explicit wait in Selenium using WebDriverWait class

    • Import WebDriverWait class from Selenium

    • Specify the maximum time to wait and the polling interval

    • Use ExpectedConditions to define the condition to wait for

    • Apply the wait to a specific element or the entire page

  • Answered by AI
  • Q2. Write code to implement Robot class in java
  • Ans. 

    Implementing a Robot class in Java

    • Create a Robot class with attributes like name, batteryLevel, etc.

    • Include methods for moving, turning, and charging the robot

    • Use inheritance if needed for different types of robots

  • Answered by AI
  • Q3. 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...

  • Answered by AI
  • Q4. What will be the memory allocation for the code String str1 = "Automation"; String str2 = new String("Automation");
  • Ans. 

    str1 will be stored in the string pool while str2 will be stored in the heap memory.

    • str1 will be stored in the string pool, which is a part of the heap memory.

    • str2 will create a new String object in the heap memory, separate from the string pool.

  • Answered by AI
  • Q5. What is the difference between str1==str2 and str1.equals(str2)
  • Ans. 

    str1==str2 compares the memory addresses of the two strings, while str1.equals(str2) compares the actual contents of the strings.

    • str1==str2 checks if the two string variables point to the same memory location.

    • str1.equals(str2) compares the actual characters in the strings for equality.

    • Example: String str1 = "hello"; String str2 = "hello"; str1==str2 will return false, but str1.equals(str2) will return true.

  • Answered by AI
  • Q6. Meaning of status code 401 and 502
  • Ans. 

    401 - Unauthorized, 502 - Bad Gateway

    • 401 status code indicates that the request requires user authentication

    • 502 status code indicates that the server received an invalid response from an upstream server

  • Answered by AI
  • Q7. Print first 4 letter and last 4 letter of String str="www.amazon.com"
  • Ans. 

    Print first 4 and last 4 letters of a given string

    • Use string slicing to extract the first 4 letters: str[:4]

    • Use string slicing to extract the last 4 letters: str[-4:]

  • Answered by AI
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(5 Questions)

  • Q1. Difference between @BeforeMethod vs @BeforeTest
  • Ans. 

    The @BeforeMethod annotation is used to run a method before each test method in a class, while @BeforeTest is used to run a method before any test method in a test tag.

    • The @BeforeMethod annotation is specific to TestNG framework and is used to initialize test data before each test method.

    • @BeforeTest annotation is also specific to TestNG and is used to initialize test data before any test method in a test tag.

    • If a class...

  • Answered by AI
  • Q2. Difference between get vs navigate.to
  • Ans. 

    get() loads a URL directly, while navigate.to() allows for more complex navigation options.

    • get() is a straightforward method to load a specific URL.

    • Example: driver.get('http://example.com') loads the page immediately.

    • navigate.to() can be used for more complex navigation scenarios.

    • Example: driver.navigate().to('http://example.com') allows for back and forward navigation.

    • navigate.to() can be part of a sequence of navigat...

  • Answered by AI
  • Q3. How you extract data from excel file and which jar file is used
  • Q4. Methods of select class
  • Ans. 

    Select class methods are used to retrieve elements based on various criteria in automation testing frameworks.

    • findElement: Locates a single element. Example: driver.findElement(By.id('username'));

    • findElements: Locates multiple elements. Example: driver.findElements(By.className('btn'));

    • selectByVisibleText: Selects an option from a dropdown by visible text. Example: select.selectByVisibleText('Option 1');

    • selectByValue: ...

  • Answered by AI
  • Q5. Explicit wait conditions

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Easy
Process Duration
-
Result
Not Selected

I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. How to achieve encapsulation in python
  • Ans. 

    Encapsulation in Python is achieved through private and protected attributes and methods, promoting data hiding and abstraction.

    • Use a single underscore (_) before an attribute name to indicate it is protected: `self._protected_var`.

    • Use a double underscore (__) before an attribute name to make it private: `self.__private_var`.

    • Access private attributes through getter and setter methods to control access and modification.

    • ...

  • Answered by AI
  • Q2. What is __init stands for in python class
  • Ans. 

    __init__ is a special method in Python classes that initializes object attributes upon creation.

    • __init__ is known as the constructor method in Python classes.

    • It is called automatically when a new object of the class is created.

    • You can define parameters in __init__ to set initial values for object attributes.

    • Example: class Person: def __init__(self, name): self.name = name creates a Person object with a name attribute.

  • Answered by AI

Skills evaluated in this interview

Automation Engineer Interview Questions & Answers

user image sushishree jena

posted on 12 Nov 2024

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Explain the framework
  • Ans. 

    A framework is a set of guidelines, coding standards, concepts, and practices to help automate testing efficiently.

    • Framework provides a structure for organizing test scripts, data, and reusable components.

    • It helps in maintaining consistency and reusability of test scripts.

    • Frameworks can be data-driven, keyword-driven, or hybrid depending on the requirements.

    • Examples of frameworks include Selenium WebDriver, TestNG, JUn...

  • Answered by AI
  • Q2. Why testng was used
  • Ans. 

    TestNG was used for automated testing in order to facilitate easy test case management, parallel execution, and reporting.

    • TestNG allows for easy grouping and prioritization of test cases.

    • It supports parallel execution of test cases, improving efficiency.

    • TestNG provides detailed test reports, making it easier to identify and debug issues.

    • Annotations in TestNG help in defining the test methods and their dependencies.

    • Test...

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
No response

I applied via Walk-in and was interviewed in Jul 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Array based program: reverse the string
  • Ans. 

    Reverse a string using an array of characters.

    • Create an array of characters to store the string.

    • Iterate through the string and store each character in the array.

    • Reverse the array of characters to get the reversed string.

  • Answered by AI
  • Q2. Api status codes: 200, 400

Interview Preparation Tips

Interview preparation tips for other job seekers - Prep java very well

Skills evaluated in this interview

Interview experience
1
Bad
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. Project related

Automation Engineer Interview Questions & Answers

user image pratik sawant

posted on 16 Feb 2024

Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. What is automation testing
  • Ans. 

    Automation testing is the use of software tools to execute tests and compare actual outcomes with expected outcomes.

    • Automation testing involves writing scripts or using tools to automate repetitive tasks in testing.

    • It helps in reducing human errors and increasing efficiency.

    • It can be used for various types of testing such as functional, regression, performance, and load testing.

    • Examples of automation testing tools incl...

  • Answered by AI
Round 2 - HR 

(1 Question)

  • Q1. Tell me about yourself

Skills evaluated in this interview

Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. What is throw and throws in java?
  • Ans. 

    throw is used to throw an exception in Java, while throws is used to declare an exception that a method may throw.

    • throw is used to explicitly throw an exception within a method.

    • throws is used in the method signature to declare the exceptions that the method may throw.

    • Example: throw new Exception("Something went wrong!");

    • Example: public void someMethod() throws IOException {}

  • Answered by AI

Skills evaluated in this interview

Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Technical 

(1 Question)

  • Q1. Selenium basics question
Round 3 - Technical 

(1 Question)

  • Q1. Java selenium cucumber BDD

Automation Engineer Interview Questions & Answers

user image anita chilami

posted on 27 Feb 2024

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
-
Result
Not Selected

I applied via Naukri.com and was interviewed in Aug 2023. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. What is throw and throws in Java?
  • Ans. 

    throw is used to throw an exception in Java, while throws is used to declare exceptions that a method can throw.

    • throw is used to explicitly throw an exception in Java code

    • throws is used in method signature to declare the exceptions that the method can throw

    • Example: throw new Exception("Something went wrong!");

    • Example: public void someMethod() throws IOException {}

  • Answered by AI

Skills evaluated in this interview

Capgemini Interview FAQs

How many rounds are there in Capgemini Automation Engineer interview?
Capgemini interview process usually has 1-2 rounds. The most common rounds in the Capgemini interview process are Technical, HR and Resume Shortlist.
How to prepare for Capgemini Automation Engineer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Capgemini. The most common topics and skills that interviewers at Capgemini expect are Python, Automation Engineering, Powershell, Automation and Automation Testing.
What are the top questions asked in Capgemini Automation Engineer interview?

Some of the top questions asked at the Capgemini Automation Engineer interview -

  1. How would you locate the Xpath for the "Today's Deal" menu item on Ama...read more
  2. What is the difference between str1==str2 and str1.equals(st...read more
  3. What will be the memory allocation for the code String str1 = "Automation"; Str...read more

Tell us how to improve this page.

Overall Interview Experience Rating

3.9/5

based on 15 interview experiences

Difficulty level

Easy 38%
Moderate 63%

Duration

Less than 2 weeks 67%
2-4 weeks 17%
6-8 weeks 17%
View more
Capgemini Automation Engineer Salary
based on 253 salaries
₹3.6 L/yr - ₹14.2 L/yr
23% more than the average Automation Engineer Salary in India
View more details

Capgemini Automation Engineer Reviews and Ratings

based on 27 reviews

3.8/5

Rating in categories

3.9

Skill development

3.9

Work-life balance

2.4

Salary

3.5

Job security

3.9

Company culture

2.6

Promotions

3.6

Work satisfaction

Explore 27 Reviews and Ratings
Automation Engineer

Bangalore / Bengaluru

3-6 Yrs

₹ 4-20 LPA

Powerflex Automation engineer || 6 To 12 years || Gurgaon

Gurgaon / Gurugram

6-11 Yrs

Not Disclosed

Automation Engineer

Bangalore / Bengaluru

3-6 Yrs

₹ 4-20 LPA

Explore more jobs
Consultant
58.6k salaries
unlock blur

₹5.3 L/yr - ₹19 L/yr

Associate Consultant
51.2k salaries
unlock blur

₹4.5 L/yr - ₹10 L/yr

Senior Consultant
50k salaries
unlock blur

₹7.8 L/yr - ₹26 L/yr

Senior Analyst
22.1k salaries
unlock blur

₹1.6 L/yr - ₹9.1 L/yr

Senior Software Engineer
21.5k salaries
unlock blur

₹3.5 L/yr - ₹13.5 L/yr

Explore more salaries
Compare Capgemini with

Wipro

3.7
Compare

Accenture

3.8
Compare

Cognizant

3.7
Compare

TCS

3.6
Compare
write
Share an Interview