I have a situation as shown on SS below.
I am testing some web app with selenium (java) and in one moment I got 4 pop-ups at the same time. I want to dismiss them all, but actually I can't get 3 of them.
I was searching how to handle multiple pop ups, and found this topic: How to handle multiple alert popup confirmation in selenium? - but that is not what I'm searching for.
First time driver.switchTo().alert() is returning an alert and I can dismiss it. But second time, it is null and impossible to switch on remaining pop ups.
I also tried things from this topic (https://sqa.stackexchange.com/questions/8416/how-to-switch-handle-close-particular-popup-window-when-multiple-popups-are-ope) with driver.getWindowHandles(), but it returns only one handle, so there is no multiple windows to switch.
So, my problem is that I can't get remaining three pop ups and dismiss them, any hints or someone had same problems?
Thanks.