diff options
-rw-r--r-- | uitest/uitest/test.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/uitest/uitest/test.py b/uitest/uitest/test.py index b4ad24e5c31c..f0cc1747b02e 100644 --- a/uitest/uitest/test.py +++ b/uitest/uitest/test.py @@ -22,11 +22,6 @@ class DialogNotExecutedException(Exception): def __str__(self): return "Dialog not executed for: " + self.command -class DialogNotClosedException(Exception): - - def __str__(self): - return "Dialog was not closed" - class UITest(object): def __init__(self, xUITest, xContext): @@ -152,14 +147,11 @@ class UITest(object): def close_dialog_through_button(self, button): with EventListener(self._xContext, "DialogClosed" ) as event: button.executeAction("CLICK", tuple()) - time_ = 0 - while time_ < MAX_WAIT: + while True: if event.executed: time.sleep(DEFAULT_SLEEP) return - time_ += DEFAULT_SLEEP time.sleep(DEFAULT_SLEEP) - raise DialogNotClosedException() def close_doc(self): desktop = self.get_desktop() |