'Testing UX with random IO?

So I've found a error in my UX that wasn't cought by test if I press besides a popup it goes into deadstate

# they press ok
btn = self.browser_adam.find_element(By.ID, "closeBtnMod").click()

How do I catch things like reloading a page or this special case?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source