Capgemini Interview Questions
Collection of Capgemini Interview Questions. The section contains a real-time interview experience shared by the interviewees.
Roles & Responsibilities.
What is an interface?
What is inheritance?
How u achieve multiple inheritance in java?
Write a program to reverse a number.
How you select an option in the dropdown?
What is an iframe? Write code to click on a button that is in a nested iframe.
How to handle file downloading & uploading?
Difference between implicit wait and explicit wait.
The total number of rows in a web table.
How to select a check box present in a web table.
What are webdriver exceptions?
How to read data from an excel file?
How many testing environments you have in your organization?
Write an xpath to get all the links.
How to read the text on a tooltip?
Check whether an element is displayed or not.
There are 3 classes a b c. How to access the methods of b and c in class a.
What is timeout in the grid?
What is browser timeout in grid?
Explain max instance and max session?
Tell different annotations provided by testing.
Suppose I want to check a particular exception in TestNG, How will you do it?
What is soft and hard assertion?
What are different access modifiers and explain each?
Can you define multiple public classes in a single java file is it possible?
Class name and java file name should be the same?
What you mean by final, finally, finalize?
What do you mean by for each loop?
Can we remove any element by using for each loop?
Difference between arraylist and vector?
How do you write a custom class which is immutable?
Create one custom class using interface inside it, that custom class should responsible for doing each operation. Which type of interface will you use to create such a custom class?
Below questions, asked from 5 years experienced candidate.
Write code to open the browser in incognito mode.
How to read txt or .bat file in selenium?
Explain how to take screenshots in selenium.
How to add failed test cases in report generation.
Convert array to ArrayList.
How to convert hashmap to list.
Write code to do right click on web element.
How to get the count of checkboxes on a webpage and find which one is checked?
How to read properties file.
Explain what is boxing and unboxing?
How to read data from the database.
Write code for the explicit wait.
How to execute the test from the command prompt?
How to read a file from the command prompt, is it possible?
Below questions, asked from 6 years experienced candidates.
What are scrum and kanban?
Is webdriver a class or interface then which class is implementing methods of webdriver?
Example of method overloading in selenium.
Can we take a screenshot in headless mode?
Have you worked on Jenkins? Have you triggered headless mode from Jenkins?
Return type of driver.getwindowhandle and getwindowhandles?
What is fluent wait?
How do you manage branches of code in your project?
Have you done mac os testing with RPA.
What is out in system .out.print ln?
What is super interface of webdriver interface?
Expected exceptions annotation in TestNG.
How to check and run failed test cases of the project?
What is alert() in driver .switchTo()?
How to map objects coming from a JSON response where the response is very big (country–> city1 –> city2 –> more details) and we check it manually. How to handle the JSON?
Upcasting and downcasting in java.
Have you performed BDD testing?
Is map a part of collection? What is a hashmap?
Have you worked on any device testing like Appium?
What was the last issue that you got while executing the script?
Have you worked on Docker and Kubernetes?
1. How do you handle the random pop-ups?
2. How do you write dynamic xpaths?
3. Explain your project? And, framework architecture?
4. Where and How are you initializing driver
5. What is LinkedList? What are the Operations you can do with this?
6. What is immutable in Java? Examples?
7. What is the default size of Array and ArrayList?
8. What is Constructor chaining?
9. What is the use of Web Service?
10. Difference between API and Webservice?
11. PUT vs POST
12. Explain Maven’s life cycle? Different Maven commands?
13. Difference between git pull vs git fetch?
14. What is branch in Git?
15. What is cloning? How can you clone the master branch?
Check more questions on Java, Selenium, Database, API, and Manual testing.