i
Cognizant
Filter interviews by
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);
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
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...
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
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.
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...
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...
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...
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.
I applied via Naukri.com and was interviewed in Nov 2024.Β There was 1 interview round.
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...
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.
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);
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-...
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...
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
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...
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.
I applied via Job Portal and was interviewed before Mar 2023.Β There were 3 interview rounds.
Most of the questions they asked from oops concepts.
I applied via Naukri.com and was interviewed before May 2022.Β There were 2 interview rounds.
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(...
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...
What people are saying about Cognizant
I applied via Campus Placement and was interviewed before Aug 2020.Β There were 4 interview rounds.
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
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
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...
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).
I applied via Referral and was interviewed before Jun 2020.Β There were 3 interview rounds.
I applied via Company Website and was interviewed in Dec 2020.Β There were 3 interview rounds.
I applied via Company Website and was interviewed before Dec 2020.Β There were 4 interview rounds.
I applied via Company Website and was interviewed before Oct 2021.Β There were 5 interview rounds.
Basic Aptitude with some difficult questions
3 set of coding question were asked 1 easy ,1 medium ,1 hard
The duration of Cognizant Automation Test Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 3 interview experiences
Difficulty level
Duration
based on 125 reviews
Rating in categories
Hyderabad / Secunderabad,
Chennai
+14-9 Yrs
Not Disclosed
Associate
73.1k
salaries
| βΉ5.3 L/yr - βΉ12.5 L/yr |
Programmer Analyst
56.1k
salaries
| βΉ3.5 L/yr - βΉ7.3 L/yr |
Senior Associate
55.1k
salaries
| βΉ9.8 L/yr - βΉ23.5 L/yr |
Senior Processing Executive
29.9k
salaries
| βΉ2.3 L/yr - βΉ6.5 L/yr |
Technical Lead
18.5k
salaries
| βΉ6 L/yr - βΉ21.3 L/yr |
TCS
Infosys
Wipro
Accenture