i
Wipro
Filter interviews by
Questions related to Selenium Automation and software testing
To remove duplicate characters in a string, use a loop and a hashset
To perform operations on specific buttons for a user, use conditional statements
To switch to a particular tab, use the window handle
500 error code in Postman validation indicates a bad request
Primary key is a unique identifier for a record in a database
Roles and responsibilities in a project
I applied via Naukri.com
Priority in TestNG determines the order in which test methods are executed.
Priority can be set using the 'priority' attribute in @Test annotation
Default priority is 0, higher priority is executed first
Priority can be negative as well
If two methods have the same priority, they are executed in alphabetical order
A simple Java program is a standalone program while a Maven project is a build automation tool.
A simple Java program is compiled and executed using the command line or an IDE.
A Maven project uses a pom.xml file to manage dependencies and build the project.
A simple Java program may require manual management of dependencies.
A Maven project can easily manage dependencies and build the project with a single command.
A simpl...
Tags are used in Cucumber to organize and filter scenarios and features.
Tags allow for easy organization of scenarios and features based on their purpose or functionality.
Tags can be used to filter which scenarios or features are run during a test.
Tags can be added to scenarios or features using the '@' symbol followed by the tag name.
Tags can also be used to pass parameters to step definitions.
Examples: @smoke, @regre
TestNG is more advanced and flexible than JUnit, with features like parallel testing and data-driven testing.
TestNG supports parallel testing while JUnit does not.
TestNG allows for data-driven testing while JUnit does not.
TestNG has more advanced annotations and reporting features than JUnit.
TestNG can be used with both Java and non-Java languages while JUnit is only for Java.
JUnit is simpler and easier to learn than T
To disable a test, we can comment out the test code or use testNG annotations.
Comment out the test code
Use testNG annotations like @Test(enabled=false)
Use testNG XML file to disable the test
Use groups to disable a set of tests
No, the two login buttons will not have the same ID.
Each element on a web page should have a unique ID
Having two login buttons with the same ID would violate this principle
To interact with each button separately, you need to identify them using different attributes like class, name, or XPath
Use TestNG or JUnit framework to generate step execution report/result.
Use TestNG or JUnit annotations to mark the start and end of each test step.
Use TestNG or JUnit listeners to capture the test results and generate the report.
Use reporting libraries like ExtentReports or ReportNG to generate detailed reports with screenshots and logs.
To switch to the second window using page title, we can use getWindowHandles() and switchTo() methods.
Use getWindowHandles() method to get all the window handles
Iterate through the window handles and switch to the desired window using switchTo() method
Use getTitle() method to get the title of each window and compare it with the desired title
To retrieve all values from a drop down, we can use the getOptions() method and store the values in an array of strings.
Locate the drop down element using any of the locators
Create a Select class object by passing the drop down element as a parameter
Use the getOptions() method to retrieve all the options from the drop down
Store the options in an array of strings
Collections like ArrayList, HashMap, HashSet are commonly used in Selenium framework.
ArrayList is used to store a list of elements
HashMap is used to store key-value pairs
HashSet is used to store unique elements
Collections class is used for sorting and searching
What people are saying about Wipro
I applied via Naukri.com and was interviewed in Apr 2021. There were 3 interview rounds.
There is no such thing as 'mother of all classes' in Selenium Automation.
There is no concept of 'mother of all classes' in Selenium Automation.
It is possible that the interviewer is asking a trick question or trying to test the candidate's knowledge.
The candidate should politely ask for clarification or context before attempting to answer.
If the interviewer insists on an answer, the candidate can explain that there is ...
findElement is used to locate a single element on a web page, while findElements is used to locate multiple elements.
findElement returns the first matching element on the page, while findElements returns a list of all matching elements.
findElement throws NoSuchElementException if no element is found, while findElements returns an empty list.
findElement is used when you expect only one element to be present, while findE...
Java program to find the largest number in an array of strings
Convert each string element in the array to an integer using Integer.parseInt()
Initialize a variable to store the largest number and compare each element to update it
Return the largest number found in the array
Asked some questions on selenium, sql query and java programming
I applied via Naukri.com and was interviewed in Mar 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in Nov 2023. There was 1 interview round.
1) continue - skips the current iteration and continues with the next iteration in a loop. break - exits the loop immediately. 2) Maven is a build automation tool used primarily for Java projects. 3) Extent Report is a reporting library for Selenium test automation.
continue statement is used to skip the current iteration and continue with the next iteration in a loop
break statement is used to exit the loop immediately
M...
Project Engineer
32.6k
salaries
| ₹1.8 L/yr - ₹8.3 L/yr |
Senior Software Engineer
23k
salaries
| ₹5.8 L/yr - ₹22.5 L/yr |
Senior Associate
21.2k
salaries
| ₹0.8 L/yr - ₹5.5 L/yr |
Senior Project Engineer
20.5k
salaries
| ₹5 L/yr - ₹19 L/yr |
Technical Lead
18.6k
salaries
| ₹8.3 L/yr - ₹36 L/yr |
TCS
Infosys
Tesla
Amazon