mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-22 04:21:44 +00:00
chore: add attempts for clicking sign out button
This commit is contained in:
parent
5a6d35fde2
commit
d953db7a31
@ -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()
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user