diff --git a/test/e2e/gui/components/settings/sign_out_popup.py b/test/e2e/gui/components/settings/sign_out_popup.py index 5dfd7405a9..a50f1958a5 100644 --- a/test/e2e/gui/components/settings/sign_out_popup.py +++ b/test/e2e/gui/components/settings/sign_out_popup.py @@ -11,5 +11,12 @@ class SignOutPopup(BasePopup): self._sign_out_and_quit_button = Button('signOutConfirmationButton') @allure.step('Click sign out and quit button') - def sign_out_and_quit(self): - self._sign_out_and_quit_button.click() \ No newline at end of file + def sign_out_and_quit(self, attempts: int = 2): + try: + self._sign_out_and_quit_button.click() + except Exception as ec: + if attempts: + self.sign_out_and_quit(attempts-1) + else: + raise ec +