In my project, sometimes there are model and non model dialogs which keeps appearing on specific scenarios.
But the problem is sometimes we observed that, they dont get closed and leads to failure in other steps.
How to check whether any dialog / window is foreground?
I checked below options .None seems to work fine.
Can anyone shed light to possible solutions.