"I am doing automation for application, Where I am getting one popup randomly, there is no fix pattern. Whenever that popup will appear I have to click on “Close” good part is its selector is always same.
Can anyone suggest how to handle this type of popup" How to handle random popup
Option 1: using a thread in parallel to click on “Close”
Option 2: to develop a “Popup scope” that checks after each activity if the popup is present on the screen.
Option 3: to develop a “Catch&Continue scope” that catches all exceptions, handles them and continues with the activity that threw the exception.
Any other option?