MaaxtreeM
Hanon Systems Interview Questions and Answers
Q1. What is the difference between system testing and integration testing
System testing verifies the entire system as a whole, while integration testing verifies the interaction between different components.
System testing checks the system's compliance with requirements and specifications
Integration testing checks the interaction between different modules or components
System testing is done after integration testing
System testing is a black box testing technique
Integration testing is a white box testing technique
Examples of system testing include ...read more
Q2. What is the difference between Alfa testing and beta testing
Alfa testing is done by the developers before releasing the software to the testers. Beta testing is done by the end-users after the software is released.
Alfa testing is done in a controlled environment, whereas beta testing is done in a real-world environment.
Alfa testing is done by the developers, whereas beta testing is done by the end-users.
Alfa testing is done before the software is released, whereas beta testing is done after the software is released.
Alfa testing is foc...read more
Q3. How write xpath based on preceding xpath like...
Answer on how to write xpath based on preceding xpath.
Use the 'preceding' axis in the xpath expression.
The 'preceding' axis selects all nodes that come before the current node in the document.
Combine the 'preceding' axis with other axes or predicates to create a more specific xpath expression.
Example: //div[@class='container']//preceding::input[@type='text']
Q4. How to get the selected drop down list value
To get the selected drop down list value, use the getSelectedValue() method.
Use the getSelectedValue() method to get the selected value from the drop down list.
Identify the drop down list element using its ID or name.
Call the getSelectedValue() method on the identified element.
Store the returned value in a variable for further use.
Q5. How to switch one window to other
To switch one window to another, use the window handles and switch to the desired window.
Get the current window handle using driver.getWindowHandle()
Get all window handles using driver.getWindowHandles()
Switch to the desired window using driver.switchTo().window(handle)
Example: String currentHandle = driver.getWindowHandle(); Set
handles = driver.getWindowHandles(); for (String handle : handles) { if (!handle.equals(currentHandle)) { driver.switchTo().window(handle); }}
Q6. Where you use list in selenium
Lists are used in Selenium to store and manipulate web elements.
To store a group of web elements
To iterate through a list of web elements
To select multiple options from a dropdown
To verify the order of elements on a page
Top Software Tester Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month