Capgemini
Colliers India Interview Questions and Answers
Q1. Difference between abstract and interface
Abstract classes are partially implemented classes while interfaces are fully abstract classes.
Abstract classes can have both implemented and abstract methods while interfaces can only have abstract methods.
A class can only inherit from one abstract class but can implement multiple interfaces.
Abstract classes can have constructors while interfaces cannot.
Abstract classes can have instance variables while interfaces cannot.
An abstract class can be used to define a base class f...read more
Q2. Difference between overloading and overriding
Overloading is having multiple methods with the same name but different parameters. Overriding is having a method in child class with the same name and signature as in parent class.
Overloading is compile-time polymorphism while overriding is runtime polymorphism
Overloading is used to provide different ways of calling the same method with different parameters
Overriding is used to provide a specific implementation of a method in a child class
Overloading can be done in the same ...read more
Q3. TakeScreenshot in selenium- code
TakeScreenshot method in Selenium captures a screenshot of the current web page.
Create an object of the TakesScreenshot interface
Use the getScreenshotAs() method to capture the screenshot
Save the screenshot to a file or display it in the console
Q4. 1 tell me all locators
There are several locators used in Selenium such as ID, Name, Class Name, Tag Name, Link Text, and Partial Link Text.
ID - unique identifier for an element
Name - name attribute of an element
Class Name - class attribute of an element
Tag Name - HTML tag name of an element
Link Text - exact text of a link element
Partial Link Text - partial text of a link element
Q5. Different design techniques
Different design techniques for QA automation
Data-driven testing
Keyword-driven testing
Behavior-driven development
Model-based testing
Exploratory testing
Q6. Various Selenium components
Selenium components for automation testing
Selenium WebDriver - main component for browser automation
Selenium IDE - record and playback tool for creating test cases
Selenium Grid - distribute tests across multiple machines
Selenium RC - deprecated component for browser automation
Selenium Server - used to run Selenium tests on remote machines
More about working at Capgemini
Reviews
Interviews
Salaries
Users/Month