Add office photos
Engaged Employer

Cognizant

3.8
based on 49k Reviews
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

10+ Laser Experts Interview Questions and Answers

Updated 18 Jul 2024
Popular Designations

Q1. reverse string, find duplicate character in a string

Ans.

Reverse a string and find duplicate characters in it.

  • Use built-in functions like reverse() and count() in Python.

  • Loop through the string and compare each character with the rest of the string to find duplicates.

  • Create a dictionary to store the count of each character and return the duplicates.

  • Convert the string to an array, reverse it, and join it back to get the reversed string.

Add your answer

Q2. How to identify an dynamically changing object

Ans.

Dynamically changing objects can be identified by using unique attributes like ID, class, or XPath.

  • Inspect the object in the DOM to find unique identifiers like ID, class, or XPath

  • Use tools like Chrome Developer Tools or Firebug to identify dynamic changes

  • Monitor changes in the object's attributes or properties during automation testing

Add your answer

Q3. how to fetch data from xls

Ans.

To fetch data from xls, use a library like Apache POI or OpenPyXL.

  • Use a library like Apache POI or OpenPyXL to read data from xls files

  • Identify the sheet and cell range to read data from

  • Iterate through the rows and columns to extract the data

  • Handle any formatting or data type conversions as needed

Add your answer

Q4. Wait in Selenium. type of waits.

Ans.

Types of waits in Selenium include implicit, explicit, and fluent waits.

  • Implicit waits wait for a certain amount of time before throwing an exception if an element is not found.

  • Explicit waits wait for a certain condition to be met before proceeding with the next step.

  • Fluent waits wait for a certain condition to be met within a specified time frame.

  • Examples of conditions include element visibility, element clickability, and text presence.

  • Examples of time frames include seconds...read more

Add your answer
Discover Laser Experts interview dos and don'ts from real experiences

Q5. What is your experience in Automation?

Ans.

I have 3 years of experience in Automation testing using tools like Selenium and Appium.

  • Developed automated test scripts for web applications using Selenium WebDriver

  • Performed mobile automation testing using Appium for iOS and Android applications

  • Integrated automation scripts with continuous integration tools like Jenkins

Add your answer

Q6. dynamic element how to search

Ans.

Dynamic elements can be searched using unique attributes like ID, class, name, or XPath.

  • Use ID attribute if it's unique and static

  • Use class attribute if it's unique and dynamic

  • Use name attribute if it's unique and static

  • Use XPath if other attributes are not unique or not available

Add your answer

Q7. framework used in your previous project

Ans.

We used Selenium WebDriver with TestNG framework for automated testing in our previous project.

  • Selenium WebDriver was used for automating web application testing

  • TestNG framework was used for test case management and execution

  • Integration with Jenkins for continuous integration

  • Page Object Model design pattern was implemented for better test maintenance

Add your answer

Q8. How to remove duplicate data

Ans.

To remove duplicate data, use data structures like sets or hashmaps to store unique values.

  • Use a set to store unique values and then convert it back to an array

  • Iterate through the array and check if the value already exists in the set before adding it

  • Use a hashmap to store values as keys and their occurrences as values, then filter out values with occurrences greater than 1

Add your answer

Q9. How to identify a table

Ans.

A table can be identified by its structure, typically consisting of rows and columns.

  • Look for a grid-like structure with rows and columns

  • Check for headings or labels for each column

  • Tables often contain data organized in a structured format

Add your answer

Q10. Types of selectors

Ans.

Selectors are used in automation testing to locate web elements on a page.

  • Types of selectors include ID, class, name, tag name, link text, partial link text, xpath, and css selector.

  • ID selector: #elementId

  • Class selector: .className

  • Name selector: [name='elementName']

  • Tag name selector: tagName

  • Link text selector: link=exactLinkText

  • Partial link text selector: partialLink=partialLinkText

  • XPath selector: //xpathExpression

  • CSS selector: css=cssSelector

Add your answer

More about working at Cognizant

Top Rated Mega Company - 2024
Top Rated IT/ITES Company - 2024
HQ - Teaneck. New Jersey., United States (USA)
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Laser Experts

based on 17 interviews
2 Interview rounds
Technical Round - 1
Technical Round - 2
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top QA Engineer Interview Questions from Similar Companies

3.9
 • 18 Interview Questions
3.9
 • 13 Interview Questions
3.2
 • 13 Interview Questions
3.8
 • 12 Interview Questions
3.5
 • 10 Interview Questions
3.7
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter