-
Notifications
You must be signed in to change notification settings - Fork 987
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
206 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
from views.base_element import BaseEditBox | ||
from views.base_view import BaseView | ||
|
||
|
||
class ContractAddressInput(BaseEditBox): | ||
def __init__(self, driver): | ||
super(ContractAddressInput, self).__init__(driver) | ||
self.locator = self.Locator.xpath_selector( | ||
"//*[@text='Contract address']/following-sibling::*[2]/android.widget.EditText") | ||
|
||
|
||
class NameInput(BaseEditBox): | ||
def __init__(self, driver): | ||
super(NameInput, self).__init__(driver) | ||
self.locator = self.Locator.xpath_selector("//*[@text='Name']/following-sibling::*[1]/android.widget.EditText") | ||
|
||
|
||
class SymbolInput(BaseEditBox): | ||
def __init__(self, driver): | ||
super(SymbolInput, self).__init__(driver) | ||
self.locator = self.Locator.xpath_selector( | ||
"//*[@text='Symbol']/following-sibling::*[2]/android.widget.EditText") | ||
|
||
|
||
class DecimalsInput(BaseEditBox): | ||
def __init__(self, driver): | ||
super(DecimalsInput, self).__init__(driver) | ||
self.locator = self.Locator.xpath_selector( | ||
"//*[@text='Decimals']/following-sibling::*[2]/android.widget.EditText") | ||
|
||
|
||
class AddCustomTokenView(BaseView): | ||
def __init__(self, driver): | ||
super(AddCustomTokenView, self).__init__(driver) | ||
self.driver = driver | ||
self.contract_address_input = ContractAddressInput(self.driver) | ||
self.name_input = NameInput(self.driver) | ||
self.symbol_input = SymbolInput(self.driver) | ||
self.decimals_input = DecimalsInput(self.driver) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.