I have to handle random popups in my application actually.Some of the scenarios are as below:
- In case the popup says Click FA then FA button must be clicked if not found close button must be clicked.
I have handled this by getting the popup text and using if it contains this name then the corresponding button to be clicked.
But is there any other efficient way of handling this.