Hi, @Vallabhaneni_Rakesh,
So basically my whole question is if I can interact with certain button elements from the app, but only in the time of their appearing, as they can appear at any random time and break the flow of the case (because if your are searching for a button and the pop-up appears, the only thing left to do is dismiss/accept the popup).
For example, I Login the app, dismiss one popup, with driver.findElement(By.name("Close")).click(); , and then continue with the rest of my case. But the same popup could or could not appear in the second case, after a random amount of time.
My question is what can I use to check if that popup appears throughout the case, if it appears at all and close it with driver.findElement(By.name("Close")).click(); while my script runs, and not wait specifically to close the popup for lets say 10 minutes and only then continue with the script execution.