It might make more sense to use If window instead, if the popup is a separate window. The contents may actually change in some way and that's why your condition is not true. Especially if those are different popups that appear at different times within the flow.
Other than that, can you share the selector for the element you captured for this?
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.