Capgemini
ITW India Interview Questions and Answers
Q1. What are the different ways to locate elements in web page
Different ways to locate elements in a web page include using XPath, CSS selectors, ID, class name, tag name, and link text.
XPath: Allows you to navigate through the HTML structure of a web page.
CSS selectors: Can be used to target specific elements based on their attributes.
ID: Unique identifier for an element on a web page.
Class name: Used to group elements with similar styling.
Tag name: Targets elements based on their HTML tag.
Link text: Locates elements based on the text ...read more
Q2. How to work with list in Selenium
Working with lists in Selenium involves locating elements, storing them in a list, and performing actions on them.
Locate elements using findElements() method
Store elements in a List
Iterate through the list to perform actions on each element
Example: List
elements = driver.findElements(By.xpath("//ul/li"));
Q3. Return type of web elements
The return type of web elements is usually a string.
Web elements typically return a string value.
Examples of web elements include text boxes, buttons, and links.
The string value returned by a web element can be used for various purposes, such as verification or input manipulation.
Q4. Expected CTC and last working day
Expected CTC and last working day are important factors to consider when discussing job offers.
Be honest about your salary expectations based on your experience and industry standards.
Consider your notice period and be prepared to discuss a suitable last working day.
Provide a range for expected CTC if unsure, but be clear about your minimum acceptable salary.
Discuss any benefits or perks that are important to you in addition to the salary.
Be open to negotiation but also have ...read more
Q5. write a program for prime number
Program to check if a number is prime or not
Create a function to check if a number is prime by iterating from 2 to square root of the number
If the number is divisible by any number other than 1 and itself, it is not prime
Return true if the number is prime, false otherwise
Q6. How to find css selector
CSS selectors can be found using browser developer tools or by inspecting the HTML code.
Use browser developer tools to inspect elements and find their corresponding CSS selectors
Right click on the element you want to find the selector for and select 'Inspect'
Look for the 'Styles' tab in the developer tools to see the applied CSS styles and selectors
Use the 'Copy' feature in the developer tools to copy the CSS selector of an element
Q7. What is Testing
Testing is the process of evaluating a system or application to identify defects or errors.
Testing involves executing a system or application to verify that it meets specified requirements.
Types of testing include functional testing, performance testing, security testing, etc.
Testing helps ensure the quality and reliability of the system or application.
Examples of testing tools include Selenium, JUnit, and LoadRunner.
Q8. How to find xpath
XPath can be found using browser developer tools or by inspecting the HTML code of the webpage.
Use browser developer tools to inspect elements and generate XPath
Manually inspect the HTML code of the webpage to identify unique attributes
Consider using Chrome DevTools or Firebug for easier XPath generation
Q9. Share faced challenges in team
I faced challenges in team communication and conflicting priorities.
Miscommunication leading to delays in project timelines
Conflicting priorities causing tension within the team
Difficulty in aligning team members' goals and objectives
More about working at Capgemini
Interview Process at ITW India
Top Quality Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month