0
votes

I have 4 child windows opened & these are having info related to individual loans. Now we have a drop-down in parent window to navigate to already opened loan window by clicking an option from the drop down. When the application functionality of navigating to a particular loan window is working fine then selenium test script passes. But when application functionality of navigating to a particular loan window is not working then test case should fail but it gives false positive and passes every time.

The reason is we are using switchTo() method to navigate from parent window to child loan window. So how to handle such scenario, that it navigates properly when functionality works and should fail when there is application issue with navigate functionality.