Nagarro : QE Engineer Second Round Interview
- How would you handle a situation where web element is present on page but not interactable in Selenium? Can you answer ?
- Automate a scenario where a user logs in to his website , navigates to home page, and performs a search. How would you do this using Selenium WebDriver?
- If a web element is constantly changing its locator value dynamically, how would you handle it in your automation script? : Dyamic xpath
-While automating a form submission, one of the fields randomly becomes disabled during runtime. How would you handle this scenario in Selenium?
-How would you handle a situation where an alert pops up unexpectedly during a test, and you need to continue executing further steps after accepting it?
- Suppose You are automating a scenario where you need to upload a file using an input element. How would you do this in Selenium?
- In case of timeout when waiting for an element to load on a page, how would you handle it to ensure your script continues?
-you need to interact with a set of radio buttons on a page, but the labels are dynamically changing , how would you select the appropriate label using Selenium?
- You have to test a scenario where data is entered into a form, and a success message only appears after a short delay. How would you wait for this message to appear on website ?
-In a situation where there is an iframe on the page, and you need to interact with elements inside that iframe, how would you approach this
-If you need to perform a mouse hover action over an element that triggers a hidden menu, how would you automate this action ? : Hint : Actions Class
- You’re testing a page with multiple pop-up windows, and you need to switch between them. How would you switch to a specific window in Selenium? : Hint getWindowHandles
-During selenium automation, an element occasionally fails to load due to network issues. How would you handle this in your test script?
-You need to validate a list of checkboxes, ensuring that only some of them are checked. How would you go about automating this validation in Selenium?