i
Capgemini
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Different exceptions in Selenium include NoSuchElementException, ElementNotVisibleException, StaleElementReferenceException, TimeoutException, and WebDriverException.
NoSuchElementException: Thrown when an element could not be found in the DOM.
ElementNotVisibleException: Thrown when an element is present in the DOM but not visible.
StaleElementReferenceException: Thrown when the element is no longer attached to the DOM.
T...
A prime number is a number greater than 1 that has no positive divisors other than 1 and itself.
Start by checking if the number is less than 2, if so it is not a prime number
Loop through numbers from 2 to the square root of the number and check if the number is divisible by any of them
If the number is not divisible by any number in the loop, then it is a prime number
I applied via Naukri.com and was interviewed in Mar 2024. There was 1 interview round.
The framework used in the project is a combination of data-driven and keyword-driven frameworks.
The framework allows for easy maintenance and scalability of test cases.
It separates test data from test scripts, making it easier to update test data without changing the scripts.
Reusable functions and libraries are used to reduce redundancy in test scripts.
Test cases are written in a modular fashion, allowing for easy debu...
Background keyword in BDD is used to define common steps that are executed before each scenario in a feature file.
Background keyword is used to reduce duplication of common steps in scenarios.
It is placed at the beginning of a feature file before scenarios.
All steps defined under Background keyword are executed before each scenario in the feature file.
It helps in maintaining consistency and readability of feature files...
Hooks in BDD are special methods that allow for setup and teardown actions before and after scenarios in test automation.
Hooks are used to perform actions before and after scenarios in BDD tests.
They can be used for setup (Before) and teardown (After) actions.
Hooks help in reducing code duplication and improving test maintenance.
Examples include setting up test data before a scenario and cleaning up resources after a s
Java program to reverse a string
Create a char array from the input string
Use two pointers to swap characters from start and end of the array
Convert the char array back to a string and return
Desired Capabilities are a set of key-value pairs used to configure the WebDriver browser during test automation.
Used to set properties for WebDriver browser
Can be used to configure browser settings like browser name, version, platform, etc.
Helps in customizing the behavior of the browser during automation tests
Reverse a string by iterating through each character and appending to a new string.
Iterate through each character of the input string
Append each character to a new string in reverse order
Return the reversed string
Sorting a map based on values
Use a TreeMap to automatically sort a map based on values
Implement a custom Comparator to sort the map based on values
Convert the map to a list of entries, then sort the list based on values
What people are saying about Capgemini
Capgemini interview questions for designations
Reverse a sentence in java
Write a code for handling windows in selenium
Get interview-ready with Top Capgemini Interview Questions
First round was okay
Count number of occourance in a String and remove duplicates
I applied via Recruitment Consultant and was interviewed in Dec 2020. There was 1 interview round.
I applied via Approached by Company and was interviewed before Oct 2021. There were 3 interview rounds.
1 Interview rounds
based on 17 reviews
Rating in categories
Consultant
55.2k
salaries
| ₹5.2 L/yr - ₹18 L/yr |
Associate Consultant
52k
salaries
| ₹2.9 L/yr - ₹11.6 L/yr |
Senior Consultant
45.9k
salaries
| ₹7.5 L/yr - ₹25 L/yr |
Senior Analyst
20.6k
salaries
| ₹2 L/yr - ₹9 L/yr |
Senior Software Engineer
19.9k
salaries
| ₹3.5 L/yr - ₹12.5 L/yr |
Wipro
Accenture
Cognizant
TCS