Xylem Water Solutions
10+ TelesourceNow Interview Questions and Answers
Q1. How you can validate the button present on the UI is actually blue in colour
To validate the button color, inspect the CSS properties or use a color picker tool.
Inspect the CSS properties of the button element to check the color value
Use a color picker tool to sample the color of the button on the UI
Compare the sampled color with the expected blue color value
Q2. How you can print numbers from one to 1000 without using any loop
Use recursion to print numbers from 1 to 1000 without using loops
Create a recursive function that takes a number as input
Print the number and call the function with the next number until 1000 is reached
Q3. How you can validate the data with any value is present in the table in selenium
You can validate data presence in a table using Selenium by locating the table element and then searching for the desired value.
Locate the table element using Selenium WebDriver
Iterate through the rows and columns of the table to find the desired value
Use assertions to validate if the value is present in the table
Q4. Can we overload/override function having same signatures but have different return types in java!
No, in Java you cannot overload/override functions based on return types.
In Java, method overloading is based on the number and type of parameters, not the return type.
Method overriding is based on the method signature, which includes the method name, parameter types, and order, but not the return type.
Attempting to overload or override a method based solely on return type will result in a compilation error.
Q5. Difference between abstract and interface. Create an object for an abstract class.
Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.
Abstract class can have constructors, fields, and non-abstract methods along with abstract methods.
Interfaces can only have abstract methods and constants, no constructors or fields.
An abstract class can provide a default implementation for some methods, while an interface cannot.
An abstract class can be extended by another class using 'extends', while an interface c...read more
Q6. Program to remove white spaces from string without any inbuilt function and explain
Program to remove white spaces from string without any inbuilt function
Iterate through each character in the string
Create a new string and add non-white space characters to it
Return the new string without white spaces
Q7. Difference between regression and integration testing
Regression testing ensures that new code changes do not adversely affect existing functionality, while integration testing checks if different modules work together correctly.
Regression testing focuses on retesting existing functionality after code changes
Integration testing checks if different modules work together as expected
Regression testing is usually automated to save time and effort
Integration testing may involve manual testing to ensure all components work together se...read more
Q8. How to validate the checkbox is checked
To validate if a checkbox is checked, use Selenium WebDriver to locate the checkbox element and then use the isSelected() method to check if it is checked.
Locate the checkbox element using Selenium WebDriver
Use the isSelected() method to check if the checkbox is checked
Assert the result to validate if the checkbox is checked
Q9. Difference between findelement and findelements
findelement returns the first matching element on the page, findelements returns a list of all matching elements.
findelement returns a single WebElement, findelements returns a list of WebElements
findelement throws NoSuchElementException if no element is found, findelements returns an empty list
Example: driver.findElement(By.id("exampleId")) vs driver.findElements(By.className("exampleClass"))
Q10. Test scenarios for facebook login page
Test scenarios for Facebook login page
Verify login with valid credentials
Verify login with invalid credentials
Verify login with empty username and password fields
Verify login with incorrect password
Verify login with incorrect username
Verify login with special characters in username and password
Verify login with locked account
Verify login with expired password
Verify login with CAPS LOCK on
Verify login with multiple login attempts leading to account lockout
Q11. Difference between put and patch
PUT is used to update or replace an entire resource, while PATCH is used to update or modify a part of a resource.
PUT is idempotent, meaning multiple identical requests will have the same effect as a single request.
PATCH is not necessarily idempotent, as multiple identical requests may have different effects.
PUT requires the client to send the entire updated resource, while PATCH only requires the client to send the specific changes to be made.
PUT is typically used for updati...read more
More about working at Xylem Water Solutions
Top QA Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month