2017-08-28 10:02:20 +00:00
|
|
|
from views.base_view import BaseViewObject
|
|
|
|
from views.base_element import *
|
|
|
|
|
|
|
|
|
|
|
|
class PublicKeyText(BaseText):
|
|
|
|
|
|
|
|
def __init__(self, driver):
|
|
|
|
super(PublicKeyText, self).__init__(driver)
|
2017-09-11 10:43:42 +00:00
|
|
|
self.locator = self.Locator.accessibility_id('profile-public-key')
|
2017-08-28 10:02:20 +00:00
|
|
|
|
|
|
|
|
2017-09-21 17:01:04 +00:00
|
|
|
class ProfileAddressText(BaseText):
|
|
|
|
|
|
|
|
def __init__(self, driver):
|
|
|
|
super(ProfileAddressText, self).__init__(driver)
|
|
|
|
self.locator = self.Locator.accessibility_id('profile-address')
|
|
|
|
|
|
|
|
|
2017-08-28 10:02:20 +00:00
|
|
|
class ProfileViewObject(BaseViewObject):
|
|
|
|
|
|
|
|
def __init__(self, driver):
|
|
|
|
super(ProfileViewObject, self).__init__(driver)
|
|
|
|
self.driver = driver
|
|
|
|
|
|
|
|
self.public_key_text = PublicKeyText(self.driver)
|
2017-09-21 17:01:04 +00:00
|
|
|
self.profile_address_text = ProfileAddressText(self.driver)
|