2018-01-14 17:43:36 +00:00
|
|
|
from views.base_element import BaseEditBox, BaseButton
|
2018-01-03 09:34:40 +00:00
|
|
|
from views.sign_in_view import SignInView
|
|
|
|
|
|
|
|
|
|
|
|
class PassphraseInput(BaseEditBox):
|
|
|
|
|
|
|
|
def __init__(self, driver):
|
|
|
|
super(PassphraseInput, self).__init__(driver)
|
2018-07-04 13:40:52 +00:00
|
|
|
self.locator = self.Locator.xpath_selector("//android.widget.EditText[contains(@text,'phrase')]")
|
2018-01-03 09:34:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ConfirmRecoverAccess(BaseButton):
|
|
|
|
|
|
|
|
def __init__(self, driver):
|
|
|
|
super(ConfirmRecoverAccess, self).__init__(driver)
|
|
|
|
self.locator = self.Locator.xpath_selector("//android.widget.TextView[@text='RECOVER ACCESS']")
|
|
|
|
|
|
|
|
|
|
|
|
class RecoverAccessView(SignInView):
|
|
|
|
|
|
|
|
def __init__(self, driver):
|
|
|
|
super(RecoverAccessView, self).__init__(driver)
|
|
|
|
self.driver = driver
|
|
|
|
|
|
|
|
self.passphrase_input = PassphraseInput(self.driver)
|
|
|
|
self.confirm_recover_access = ConfirmRecoverAccess(self.driver)
|