added scroll to logout button

Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
This commit is contained in:
Anton Danchenko 2018-08-20 13:02:37 +03:00
parent 70bd6d0070
commit a7f9390fee
No known key found for this signature in database
GPG Key ID: C2D4819B698627E4
2 changed files with 6 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
profile_view.logout()
sign_in_view.sign_in()
if sign_in_view.profile_button.counter.text != '1':
self.errors.append('Profile button counter is not shown after relogin')
self.errors.append('Profile button counter is not shown after re-login')
sign_in_view.profile_button.click()
profile_view.backup_recovery_phrase()
if sign_in_view.profile_button.counter.is_element_displayed():

View File

@ -75,6 +75,11 @@ class LogoutButton(BaseButton):
super(LogoutButton, self).__init__(driver)
self.locator = self.Locator.accessibility_id('log-out-button')
def click(self):
self.scroll_to_element().click()
info('Tap on %s' % self.name)
return self.navigate()
class LogoutDialog(BaseView):
def __init__(self, driver):