Upload Button Icon Add office photos
Engaged Employer

i

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

Cognizant Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

Cognizant Automation Test Engineer Interview Questions and Answers for Freshers

Updated 9 May 2025

9 Interview questions

An Automation Test Engineer was asked 7mo ago
Q. What are the different types of waits in Selenium?
Ans. 

Types of waits in Selenium include Implicit Wait, Explicit Wait, and Fluent Wait.

  • Implicit Wait: Waits for a certain amount of time before throwing a NoSuchElementException.

  • Explicit Wait: Waits for a certain condition to occur before proceeding further in the code.

  • Fluent Wait: Waits for a condition to be true with a defined polling frequency.

  • Example: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

An Automation Test Engineer was asked 7mo ago
Q. How do you input data in Cucumber?
Ans. 

Data can be input in Cucumber using feature files and step definitions.

  • Data can be input in feature files using scenarios and scenario outlines

  • Step definitions can be used to define the actions to be taken with the input data

  • Data tables can be used in feature files to input structured data

  • Examples keyword can be used in scenario outlines to provide multiple sets of input data

Automation Test Engineer Interview Questions Asked at Other Companies for Fresher

asked in Infosys
Q1. Introduce yourself 1.What is STLC 2. difference between Test plan ... read more
asked in Accenture
Q2. 1.types of wait, 2. Locators in selenium 3.grid vs webdriver 4.cs ... read more
asked in Globant
Q3. 1.Difference Between Const,Var,Char. 2.Oop's concept with example ... read more
asked in IAMOPS
Q4. what is selenium grid?, what frame work u use, explain?, what is ... read more
asked in Infosys
Q5. What are the challenges of using Selenium?
An Automation Test Engineer was asked 7mo ago
Q. What are feature files and step definitions in Cucumber BDD?
Ans. 

Feature files contain high-level description of the functionality to be tested, while step definitions are the implementation of the steps in the feature file using code.

  • Feature files are written in Gherkin syntax and describe the behavior of the application in plain text.

  • Step definitions are written in programming languages like Java, Ruby, etc., and map the steps in the feature file to automation code.

  • Feature fi...

An Automation Test Engineer was asked 7mo ago
Q. What are exceptions in Selenium?
Ans. 

Exceptions in Selenium are errors that occur during test execution, disrupting the flow of the test script.

  • Exceptions are thrown when there is an unexpected behavior in the application under test or in the test script itself.

  • Common exceptions in Selenium include NoSuchElementException, ElementNotVisibleException, TimeoutException, and StaleElementReferenceException.

  • Handling exceptions in Selenium can be done using...

What people are saying about Cognizant

View All
schedule2
Verified Icon
2w
works at
Cognizant
Salary expectation
I have 5+ years of experience in springboot microservices, currently working in CTS and having 10L CTC , wanted to switch in Infosys or Accenture like companies, how much should I ask for 15L-18L ? Just worried if I ask more they can reject my application, please help me with some numbers
Got a question about Cognizant?
Ask anonymously on communities.
An Automation Test Engineer was asked 7mo ago
Q. What will be returned if multiple tabs are open?
Ans. 

The return would be the number of tabs open in the browser.

  • The return value would be an integer representing the count of open tabs.

  • For example, if there are 5 tabs open, the return value would be 5.

An Automation Test Engineer was asked 7mo ago
Q. What is the difference between absolute and relative XPath?
Ans. 

Absolute Xpath starts from the root element, while relative Xpath starts from any node in the DOM structure.

  • Absolute Xpath starts with a single forward slash (/) and starts selection from the root node.

  • Relative Xpath starts with a double forward slash (//) and starts selection from the current node or any node in the DOM structure.

  • Absolute Xpath is more brittle and prone to breaking if the structure of the page ch...

An Automation Test Engineer was asked
Q. How do you identify objects in Selenium?
Ans. 

To identify objects in Selenium, we use locators such as ID, Name, Class Name, XPath, CSS Selector, etc.

  • Locators are used to identify web elements on a page

  • ID and Name are the most commonly used locators

  • XPath and CSS Selector are more powerful but slower

  • Class Name is useful for identifying multiple elements with the same class

  • Locators can be used with findElement() and findElements() methods

  • Example: driver.findEle...

Are these interview questions helpful?
An Automation Test Engineer was asked 7mo ago
Q. What is Test case, Test plan and Test Secenarios
Ans. 

Test case is a set of conditions or variables under which a tester will determine whether a system under test satisfies requirements. Test plan is a document outlining the scope, approach, resources, and schedule of testing activities. Test scenarios are detailed descriptions of possible interactions with the system.

  • Test case: specific conditions to be tested, expected results, steps to execute

  • Test plan: overall s...

An Automation Test Engineer was asked 7mo ago
Q. What are hooks in Java?
Ans. 

Hooks in Java are methods that allow subclasses to override or extend the behavior of a superclass.

  • Hooks are commonly used in frameworks like JUnit and TestNG for test automation.

  • They are often used for setup and teardown operations before and after test methods.

  • Examples include @Before, @After, @BeforeClass, and @AfterClass annotations in JUnit.

Cognizant Automation Test Engineer Interview Experiences for Freshers

3 interviews found

Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

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

Round 1 - TechnicalΒ 

(9 Questions)

  • Q1. Difference between absolute and relative Xpath
  • Ans. 

    Absolute Xpath starts from the root element, while relative Xpath starts from any node in the DOM structure.

    • Absolute Xpath starts with a single forward slash (/) and starts selection from the root node.

    • Relative Xpath starts with a double forward slash (//) and starts selection from the current node or any node in the DOM structure.

    • Absolute Xpath is more brittle and prone to breaking if the structure of the page changes...

  • Answered by AI
  • Q2. What would be return if multiple tabs are open
  • Ans. 

    The return would be the number of tabs open in the browser.

    • The return value would be an integer representing the count of open tabs.

    • For example, if there are 5 tabs open, the return value would be 5.

  • Answered by AI
  • Q3. What are the waits in selenium
  • Ans. 

    Types of waits in Selenium include Implicit Wait, Explicit Wait, and Fluent Wait.

    • Implicit Wait: Waits for a certain amount of time before throwing a NoSuchElementException.

    • Explicit Wait: Waits for a certain condition to occur before proceeding further in the code.

    • Fluent Wait: Waits for a condition to be true with a defined polling frequency.

    • Example: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

  • Answered by AI
  • Q4. Exceptions in selenium
  • Ans. 

    Exceptions in Selenium are errors that occur during test execution, disrupting the flow of the test script.

    • Exceptions are thrown when there is an unexpected behavior in the application under test or in the test script itself.

    • Common exceptions in Selenium include NoSuchElementException, ElementNotVisibleException, TimeoutException, and StaleElementReferenceException.

    • Handling exceptions in Selenium can be done using try-...

  • Answered by AI
  • Q5. What is feature and step definitions in cucumber BDD
  • Ans. 

    Feature files contain high-level description of the functionality to be tested, while step definitions are the implementation of the steps in the feature file using code.

    • Feature files are written in Gherkin syntax and describe the behavior of the application in plain text.

    • Step definitions are written in programming languages like Java, Ruby, etc., and map the steps in the feature file to automation code.

    • Feature files a...

  • Answered by AI
  • Q6. How to input data in cucumber
  • Ans. 

    Data can be input in Cucumber using feature files and step definitions.

    • Data can be input in feature files using scenarios and scenario outlines

    • Step definitions can be used to define the actions to be taken with the input data

    • Data tables can be used in feature files to input structured data

    • Examples keyword can be used in scenario outlines to provide multiple sets of input data

  • Answered by AI
  • Q7. Basic Java questions like access modifiers, method overloading and overriding
  • Q8. What is Test case, Test plan and Test Secenarios
  • Ans. 

    Test case is a set of conditions or variables under which a tester will determine whether a system under test satisfies requirements. Test plan is a document outlining the scope, approach, resources, and schedule of testing activities. Test scenarios are detailed descriptions of possible interactions with the system.

    • Test case: specific conditions to be tested, expected results, steps to execute

    • Test plan: overall strate...

  • Answered by AI
  • Q9. Hooks in Java
  • Ans. 

    Hooks in Java are methods that allow subclasses to override or extend the behavior of a superclass.

    • Hooks are commonly used in frameworks like JUnit and TestNG for test automation.

    • They are often used for setup and teardown operations before and after test methods.

    • Examples include @Before, @After, @BeforeClass, and @AfterClass annotations in JUnit.

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - The second round interview was quite challenging, with numerous questions focused on core Java topics such as data structures and linked lists. It felt less like a testing interview and more akin to a developer interview.

Skills evaluated in this interview

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

I applied via Job Portal and was interviewed before Mar 2023.Β There were 3 interview rounds.

Round 1 - Coding TestΒ 

Most of the questions they asked from oops concepts.

Round 2 - TechnicalΒ 

(1 Question)

  • Q1. Selenium basic questions
Round 3 - HRΒ 

(1 Question)

  • Q1. Discussion about package details

Interview Preparation Tips

Interview preparation tips for other job seekers - Overall good experience.
Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed before May 2022.Β There were 2 interview rounds.

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 - One-on-oneΒ 

(2 Questions)

  • Q1. Very Basic Selenium Question , what is we driver ? How to identify object in Selenium
  • Q2. How to identify object in Selenium
  • Ans. 

    To identify objects in Selenium, we use locators such as ID, Name, Class Name, XPath, CSS Selector, etc.

    • Locators are used to identify web elements on a page

    • ID and Name are the most commonly used locators

    • XPath and CSS Selector are more powerful but slower

    • Class Name is useful for identifying multiple elements with the same class

    • Locators can be used with findElement() and findElements() methods

    • Example: driver.findElement(...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - learn Automation Testing basic and Test cycle

Skills evaluated in this interview

Interview questions from similar companies

Interview QuestionnaireΒ 

2 Questions

  • Q1. Self introduction
  • Q2. What is java
  • Ans. 

    Java is a high-level programming language known for its platform independence and object-oriented approach.

    • Java is widely used for developing desktop, web, and mobile applications.

    • It is known for its robustness, security, and scalability.

    • Java programs are compiled into bytecode that can run on any Java Virtual Machine (JVM).

    • It supports multithreading, exception handling, and automatic memory management.

    • Popular framewor...

  • Answered by AI

Skills evaluated in this interview

What people are saying about Cognizant

View All
schedule2
Verified Icon
2w
works at
Cognizant
Salary expectation
I have 5+ years of experience in springboot microservices, currently working in CTS and having 10L CTC , wanted to switch in Infosys or Accenture like companies, how much should I ask for 15L-18L ? Just worried if I ask more they can reject my application, please help me with some numbers
Got a question about Cognizant?
Ask anonymously on communities.

I applied via Campus Placement and was interviewed before Aug 2020.Β There were 4 interview rounds.

Interview QuestionnaireΒ 

4 Questions

  • Q1. What is collections
  • Ans. 

    Collections are data structures that store and manipulate groups of objects.

    • Collections provide a way to organize and manage large amounts of data

    • They can be used to perform operations on groups of objects, such as sorting or searching

    • Examples of collections include arrays, lists, sets, and maps

  • Answered by AI
  • Q2. What are the new features in java 8
  • Ans. 

    Java 8 introduces lambda expressions, functional interfaces, streams, and default methods.

    • Lambda expressions allow functional programming in Java

    • Functional interfaces enable the use of lambda expressions

    • Streams provide a concise way to perform operations on collections

    • Default methods allow interfaces to have implementation

    • Date and Time API improvements

    • Nashorn JavaScript engine

  • Answered by AI
  • Q3. What is the use of spring boot
  • Ans. 

    Spring Boot is a framework for building standalone, production-grade Spring-based applications.

    • Spring Boot simplifies the process of creating and deploying Spring-based applications.

    • It provides a pre-configured environment with a set of opinionated defaults.

    • It includes embedded servers like Tomcat, Jetty, and Undertow.

    • It supports a wide range of data sources and data access technologies.

    • It enables easy integration with...

  • Answered by AI
  • Q4. What is JPA
  • Ans. 

    JPA stands for Java Persistence API, a specification for object-relational mapping in Java applications.

    • JPA is used to map Java objects to relational database tables.

    • It provides a set of annotations to define the mapping between Java classes and database tables.

    • JPA also supports querying data using the Java Persistence Query Language (JPQL).

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - It will be easy interview

Skills evaluated in this interview

I applied via Referral and was interviewed before Jun 2020.Β There were 3 interview rounds.

Interview QuestionnaireΒ 

1 Question

  • Q1. Technical questions.

Interview Preparation Tips

Interview preparation tips for other job seekers - Good job security but do not expect projects with latest technologies or development side.

If you are lucky you will get project with new technologies and you can learn.

I applied via Company Website and was interviewed in Dec 2020.Β There were 3 interview rounds.

Interview QuestionnaireΒ 

1 Question

  • Q1. Apti & programming

Interview Preparation Tips

Interview preparation tips for other job seekers - Be specific
Are these interview questions helpful?

I applied via Company Website and was interviewed before Dec 2020.Β There were 4 interview rounds.

Interview QuestionnaireΒ 

1 Question

  • Q1. 1. Data structure questions

Interview Preparation Tips

Interview preparation tips for other job seekers - Good experience all total

I applied via Company Website and was interviewed before Oct 2021.Β There were 5 interview rounds.

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 - Aptitude TestΒ 

Basic Aptitude with some difficult questions

Round 3 - Coding TestΒ 

3 set of coding question were asked 1 easy ,1 medium ,1 hard

Round 4 - One-on-oneΒ 

(1 Question)

  • Q1. This was personal technical interview asking all related to my cv and the one they are looking for
Round 5 - HRΒ 

(1 Question)

  • Q1. Basic personality questions

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare everything basic and from the CV and you will be good to go.Research about the company a bit that will add cherry on top.

Interview QuestionnaireΒ 

1 Question

  • Q1. Why Infosys

Interview Preparation Tips

Interview preparation tips for other job seekers - be honest and dont fake they will know if you are

Cognizant Interview FAQs

How many rounds are there in Cognizant Automation Test Engineer interview for freshers?
Cognizant interview process for freshers usually has 2 rounds. The most common rounds in the Cognizant interview process for freshers are Technical, Resume Shortlist and One-on-one Round.
How to prepare for Cognizant Automation Test Engineer interview for freshers?
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 Cognizant. The most common topics and skills that interviewers at Cognizant expect are Selenium, Java, Automation Testing, Cucumber and API.
What are the top questions asked in Cognizant Automation Test Engineer interview for freshers?

Some of the top questions asked at the Cognizant Automation Test Engineer interview for freshers -

  1. How to identify object in Selen...read more
  2. what is feature and step definitions in cucumber ...read more
  3. What is Test case, Test plan and Test Secenar...read more
How long is the Cognizant Automation Test Engineer interview process?

The duration of Cognizant Automation Test Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.

Tell us how to improve this page.

Overall Interview Experience Rating

4.3/5

based on 3 interview experiences

Difficulty level

Easy 67%
Moderate 33%

Duration

Less than 2 weeks 100%
View more

Automation Test Engineer Interview Questions from Similar Companies

View all
Cognizant Automation Test Engineer Salary
based on 2k salaries
β‚Ή2.8 L/yr - β‚Ή13.2 L/yr
At par with the average Automation Test Engineer Salary in India
View more details

Cognizant Automation Test Engineer Reviews and Ratings

based on 125 reviews

3.7/5

Rating in categories

3.5

Skill development

3.5

Work-life balance

2.9

Salary

3.4

Job security

3.6

Company culture

2.8

Promotions

3.4

Work satisfaction

Explore 125 Reviews and Ratings
Associate
73.1k salaries
unlock blur

β‚Ή5.3 L/yr - β‚Ή12.5 L/yr

Programmer Analyst
56.1k salaries
unlock blur

β‚Ή3.5 L/yr - β‚Ή7.3 L/yr

Senior Associate
55.1k salaries
unlock blur

β‚Ή9.8 L/yr - β‚Ή23.5 L/yr

Senior Processing Executive
29.9k salaries
unlock blur

β‚Ή2.3 L/yr - β‚Ή6.5 L/yr

Technical Lead
18.5k salaries
unlock blur

β‚Ή6 L/yr - β‚Ή21.3 L/yr

Explore more salaries
Compare Cognizant with

TCS

3.6
Compare

Infosys

3.6
Compare

Wipro

3.7
Compare

Accenture

3.7
Compare
write
Share an Interview