status-react/test/appium/views/add_custom_token_view.py
Churikova Tetiana c2f8f012a8
e2e: global refactoring
Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
2021-01-25 18:44:24 +01:00

16 lines
885 B
Python

from views.base_element import EditBox
from views.base_view import BaseView
class AddCustomTokenView(BaseView):
def __init__(self, driver):
super().__init__(driver)
self.contract_address_input = EditBox(self.driver, translation_id="contract-address",
suffix="/following-sibling::*[2]/android.widget.EditText")
self.name_input = EditBox(self.driver, translation_id="name",
suffix="/following-sibling::*[1]/android.widget.EditText")
self.symbol_input = EditBox(self.driver, translation_id="symbol",
suffix="/following-sibling::*[2]/android.widget.EditText")
self.decimals_input = EditBox(self.driver, translation_id="decimals",
suffix="/following-sibling::*[2]/android.widget.EditText")