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 Selenium Automation Tester Interview Questions and Answers

Updated 16 Jan 2025

9 Interview questions

A Selenium Automation Tester was asked 5mo ago
Q. What are 5 common SQL error codes?
Ans. 

5 common SQL error codes and their meanings

  • Error code 1062: Duplicate entry - occurs when trying to insert a record with a primary key that already exists

  • Error code 1146: Table not found - occurs when trying to query a table that does not exist

  • Error code 1045: Access denied - occurs when trying to access a database without proper permissions

  • Error code 1054: Unknown column - occurs when referencing a column that do...

A Selenium Automation Tester was asked
Q. What is the syntax for Explicit wait?
Ans. 

Explicit wait is a mechanism in Selenium that allows the automation tester to wait for a certain condition to occur before proceeding further.

  • Syntax: WebDriverWait wait = new WebDriverWait(driver, timeoutInSeconds);

  • wait.until(ExpectedConditions.condition);

  • Example: WebDriverWait wait = new WebDriverWait(driver, 10);

  • wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("elementId")));

Selenium Automation Tester Interview Questions Asked at Other Companies

asked in Cognizant
Q1. How do you get the count of all text boxes on a webpage?
asked in Cognizant
Q2. How can you reduce execution time in Selenium?
Q3. What is the difference between a Test Stub and a Test Driver?
Q4. Why should Selenium be selected as a testing tool for web applica ... read more
Q5. How can you run a selected test from a group of tests in Cucumber ... read more
A Selenium Automation Tester was asked
Q. How do you upload a resume using Selenium?
Ans. 

To upload resume using Selenium, use sendKeys() method to locate the file input element and pass the file path.

  • Locate the file input element using any of the locators like id, name, class, etc.

  • Use sendKeys() method to pass the file path to the file input element.

  • Click on the submit button to upload the file.

A Selenium Automation Tester was asked
Q. What is the difference between readonly and const?
Ans. 

Red only is a type of constant used in Selenium to locate web elements based on their color.

  • Red only is used to locate elements that have a specific color, such as a red button.

  • Constants are variables that hold a fixed value and are used in Selenium to make code more readable and maintainable.

  • Red only is a type of constant that holds the value 'red' and is used in conjunction with other locators, such as ID or cla...

What people are saying about Cognizant

View All
a junior software engineer
2w
Job offer in Malaysia - legit or scam?
Hey everyone, I received a job proposal from Mindgraph for a Junior Mainframe Developer position in Malaysia (onsite). Not sure if it's a real deal. They found my resume on Naukri and the offer includes: * Experience: 3+ years on cardlink, VSAM, CICS, JCL * Location: Malaysia (Accenture client in Kuala Lumpur) * Notice: 0-60 days * Benefits: One-way ticket, 1-week stay, medical insurance, visa. Has anyone heard of Mindgraph or had a similar experience? Note : This is a permanent position with Mindgragh and you need to work with our client Accenture - Malaysia (Kaula Lumpur) & we will provide one way Air Ticket from India - Malaysia, 1 Week Accommodation, Medical Insurance and will take care of the Visa process also. Any insights would be appreciated!
Got a question about Cognizant?
Ask anonymously on communities.
A Selenium Automation Tester was asked
Q. Explain implicit and explicit wait.
Ans. 

Implicit wait is a global wait applied to all elements, while explicit wait is a specific wait applied to a particular element or condition.

  • Implicit wait is set once and applied to all elements in the script

  • Explicit wait is set for a specific element or condition

  • Implicit wait is defined at the driver level

  • Explicit wait is defined at the element level

  • Implicit wait is used to wait for elements to appear on the page

  • E...

A Selenium Automation Tester was asked
Q. How do you get the count of all text boxes on a webpage?
Ans. 

Use Selenium WebDriver to find and count all text boxes on a web page.

  • Use Selenium WebDriver to locate all text boxes on the web page

  • Use findElements method with input tag and type attribute as text to find all text boxes

  • Get the size of the list of elements to get the count of text boxes

A Selenium Automation Tester was asked
Q. Explain the concept of an interface.
Ans. 

An interface is a contract between two entities that defines the communication between them.

  • An interface defines a set of methods that a class must implement.

  • It provides a way to achieve abstraction and loose coupling.

  • Interfaces can be used to achieve multiple inheritance in Java.

  • Example: Java's Comparable interface defines a method to compare objects.

  • Example: Selenium WebDriver interface defines methods to intera...

Are these interview questions helpful?
A Selenium Automation Tester was asked
Q. How can you reduce execution time in Selenium?
Ans. 

To reduce execution time in Selenium, optimize test scripts, use efficient locators, and run tests in parallel.

  • Optimize test scripts by removing unnecessary steps and reducing wait times

  • Use efficient locators such as CSS selectors instead of XPath

  • Run tests in parallel using tools like Selenium Grid or TestNG

  • Use headless browsers like PhantomJS to speed up tests

  • Use page object model to reduce code duplication and i...

A Selenium Automation Tester was asked
Q. Explain collections, Framework used?
Ans. 

Collections are used to store and manipulate groups of objects. Frameworks used in Selenium automation testing include TestNG, JUnit, and Cucumber.

  • Collections are used to store and manipulate groups of objects

  • Frameworks used in Selenium automation testing include TestNG, JUnit, and Cucumber

Cognizant Selenium Automation Tester Interview Experiences

4 interviews found

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

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

Round 1 - Technical 

(2 Questions)

  • Q1. 5 error codes of sql
  • Ans. 

    5 common SQL error codes and their meanings

    • Error code 1062: Duplicate entry - occurs when trying to insert a record with a primary key that already exists

    • Error code 1146: Table not found - occurs when trying to query a table that does not exist

    • Error code 1045: Access denied - occurs when trying to access a database without proper permissions

    • Error code 1054: Unknown column - occurs when referencing a column that does no...

  • Answered by AI
  • Q2. 5 maven commands
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Not Selected

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

Round 1 - Technical 

(2 Questions)

  • Q1. All about selenium and java
  • Q2. JAVA oops concepts and selenium framework
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. Syntax of Explicit wait
  • Ans. 

    Explicit wait is a mechanism in Selenium that allows the automation tester to wait for a certain condition to occur before proceeding further.

    • Syntax: WebDriverWait wait = new WebDriverWait(driver, timeoutInSeconds);

    • wait.until(ExpectedConditions.condition);

    • Example: WebDriverWait wait = new WebDriverWait(driver, 10);

    • wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("elementId")));

  • Answered by AI

Skills evaluated in this interview

I applied via Naukri.com and was interviewed in Jul 2021. There were 3 interview rounds.

Interview Questionnaire 

7 Questions

  • Q1. Difference between red only and constants?
  • Ans. 

    Red only is a type of constant used in Selenium to locate web elements based on their color.

    • Red only is used to locate elements that have a specific color, such as a red button.

    • Constants are variables that hold a fixed value and are used in Selenium to make code more readable and maintainable.

    • Red only is a type of constant that holds the value 'red' and is used in conjunction with other locators, such as ID or class na...

  • Answered by AI
  • Q2. Explain interface
  • Ans. 

    An interface is a contract between two entities that defines the communication between them.

    • An interface defines a set of methods that a class must implement.

    • It provides a way to achieve abstraction and loose coupling.

    • Interfaces can be used to achieve multiple inheritance in Java.

    • Example: Java's Comparable interface defines a method to compare objects.

    • Example: Selenium WebDriver interface defines methods to interact wi...

  • Answered by AI
  • Q3. How to get the count of all text box in a web page?
  • Ans. 

    Use Selenium WebDriver to find and count all text boxes on a web page.

    • Use Selenium WebDriver to locate all text boxes on the web page

    • Use findElements method with input tag and type attribute as text to find all text boxes

    • Get the size of the list of elements to get the count of text boxes

  • Answered by AI
  • Q4. Explain implicit and explicit wait?
  • Ans. 

    Implicit wait is a global wait applied to all elements, while explicit wait is a specific wait applied to a particular element or condition.

    • Implicit wait is set once and applied to all elements in the script

    • Explicit wait is set for a specific element or condition

    • Implicit wait is defined at the driver level

    • Explicit wait is defined at the element level

    • Implicit wait is used to wait for elements to appear on the page

    • Explic...

  • Answered by AI
  • Q5. Explain collections, Framework used?
  • Ans. 

    Collections are used to store and manipulate groups of objects. Frameworks used in Selenium automation testing include TestNG, JUnit, and Cucumber.

    • Collections are used to store and manipulate groups of objects

    • Frameworks used in Selenium automation testing include TestNG, JUnit, and Cucumber

  • Answered by AI
  • Q6. How to reduce execution time in selenium?
  • Ans. 

    To reduce execution time in Selenium, optimize test scripts, use efficient locators, and run tests in parallel.

    • Optimize test scripts by removing unnecessary steps and reducing wait times

    • Use efficient locators such as CSS selectors instead of XPath

    • Run tests in parallel using tools like Selenium Grid or TestNG

    • Use headless browsers like PhantomJS to speed up tests

    • Use page object model to reduce code duplication and improv...

  • Answered by AI
  • Q7. How to upload resume using Selenium
  • Ans. 

    To upload resume using Selenium, use sendKeys() method to locate the file input element and pass the file path.

    • Locate the file input element using any of the locators like id, name, class, etc.

    • Use sendKeys() method to pass the file path to the file input element.

    • Click on the submit button to upload the file.

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - It was good. Asked basic questions on java and selenium.

Skills evaluated in this interview

Interview questions from similar companies

I applied via Naukri.com and was interviewed before Jul 2020. There was 1 interview round.

Interview Questionnaire 

1 Question

  • Q1. Coming to AEM,Interviewer has covered all the topics.

Interview Preparation Tips

Interview preparation tips for other job seekers - Pls don't join in TechMahindra.Especially for AEM Folks.Because there are no projects at all.They force you to learn and work in other domain.Then your AEM knowledge will vanish.Worst Company.

I applied via Campus Placement and was interviewed before Apr 2020. There were 3 interview rounds.

Interview Questionnaire 

1 Question

  • Q1. About the basics of c, c++ and java, also asked to explain the project that I developed.

Interview Preparation Tips

Interview preparation tips for other job seekers - Be bold and transparent. Explain your reasons and issues if any they are under standable.

I applied via Approached by Company and was interviewed before Dec 2021. There were 3 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 - Technical 

(1 Question)

  • Q1. What is n-tier architecture
Round 3 - HR 

(1 Question)

  • Q1. What is your expectation from company

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confident while answering the questions and answers
Are these interview questions helpful?

Interview Questionnaire 

1 Question

  • Q1. Tell me about yourself
  • Ans. 

    I am a Senior Engineer with over 10 years of experience in software development, specializing in scalable systems and team leadership.

    • Over a decade of experience in software engineering, focusing on backend development and cloud technologies.

    • Led a team of 5 engineers in developing a microservices architecture for a high-traffic e-commerce platform, improving scalability by 40%.

    • Proficient in multiple programming languag...

  • Answered by AI

I applied via Job Fair and was interviewed before May 2021. 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 - HR 

(1 Question)

  • Q1. What is your job role

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confident and strive hard to achieve what you desire

Interview Questionnaire 

1 Question

  • Q1. Arrays, Linked Lists, STP/RSTP, VLAN, ARP

Cognizant Interview FAQs

How many rounds are there in Cognizant Selenium Automation Tester interview?
Cognizant interview process usually has 1 rounds. The most common rounds in the Cognizant interview process are Technical.
What are the top questions asked in Cognizant Selenium Automation Tester interview?

Some of the top questions asked at the Cognizant Selenium Automation Tester interview -

  1. How to get the count of all text box in a web pa...read more
  2. How to reduce execution time in seleni...read more
  3. How to upload resume using Selen...read more

Tell us how to improve this page.

Overall Interview Experience Rating

3.7/5

based on 3 interview experiences

Difficulty level

Moderate 100%

Duration

Less than 2 weeks 50%
2-4 weeks 50%
View more
Cognizant Selenium Automation Tester Salary
based on 22 salaries
₹2.5 L/yr - ₹12.8 L/yr
11% more than the average Selenium Automation Tester Salary in India
View more details

Cognizant Selenium Automation Tester Reviews and Ratings

based on 5 reviews

4.4/5

Rating in categories

3.5

Skill development

3.3

Work-life balance

3.3

Salary

4.1

Job security

4.0

Company culture

2.5

Promotions

3.0

Work satisfaction

Explore 5 Reviews and Ratings
Associate
73.1k salaries
unlock blur

₹5.3 L/yr - ₹12.5 L/yr

Programmer Analyst
56.2k salaries
unlock blur

₹3.5 L/yr - ₹7.3 L/yr

Senior Associate
52.9k salaries
unlock blur

₹10.5 L/yr - ₹23.4 L/yr

Senior Processing Executive
29.8k salaries
unlock blur

₹2.2 L/yr - ₹6.5 L/yr

Technical Lead
19k 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