Django.fun

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?