2018-05-14 14:56:21 +00:00
|
|
|
from views.web_views.base_web_view import BaseWebView, BaseButton
|
|
|
|
|
|
|
|
|
|
|
|
class AssetsButton(BaseButton):
|
|
|
|
|
|
|
|
def __init__(self, driver):
|
|
|
|
super(AssetsButton, self).__init__(driver)
|
|
|
|
self.locator = self.Locator.text_selector('Assets')
|
|
|
|
|
|
|
|
class RequestSTTButton(BaseButton):
|
|
|
|
def __init__(self, driver):
|
|
|
|
super(AssetsButton.RequestSTTButton, self).__init__(driver)
|
|
|
|
self.locator = self.Locator.text_selector('Request STT')
|
|
|
|
|
|
|
|
|
2018-05-25 17:29:07 +00:00
|
|
|
class StatusTestDAppView(BaseWebView):
|
2018-05-14 14:56:21 +00:00
|
|
|
|
|
|
|
def __init__(self, driver):
|
2018-05-25 17:29:07 +00:00
|
|
|
super(StatusTestDAppView, self).__init__(driver)
|
2018-05-14 14:56:21 +00:00
|
|
|
self.driver = driver
|
|
|
|
|
|
|
|
self.assets_button = AssetsButton(self.driver)
|
|
|
|
self.request_stt_button = AssetsButton.RequestSTTButton(self.driver)
|