mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 02:56:07 +00:00
69209107ca
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
29 lines
912 B
Python
29 lines
912 B
Python
from views.base_element import BaseButton, BaseText
|
|
from views.base_view import BaseView
|
|
|
|
|
|
class PrivacyPolicyButton(BaseButton):
|
|
def __init__(self, driver):
|
|
super(PrivacyPolicyButton, self).__init__(driver)
|
|
self.locator = self.Locator.xpath_selector(
|
|
'//*[@content-desc="privacy-policy"]')
|
|
|
|
def navigate(self):
|
|
from views.web_views.base_web_view import BaseWebView
|
|
return BaseWebView(self.driver)
|
|
|
|
|
|
class VersionText(BaseText):
|
|
def __init__(self, driver):
|
|
super(VersionText, self).__init__(driver)
|
|
self.locator = self.Locator.xpath_selector(
|
|
'//*[@content-desc="version"]//android.widget.TextView')
|
|
|
|
|
|
class AboutView(BaseView):
|
|
def __init__(self, driver):
|
|
super(AboutView, self).__init__(driver)
|
|
|
|
self.privacy_policy_button = PrivacyPolicyButton(self.driver)
|
|
self.version = VersionText(self.driver)
|