fixed issue with empty public key input after entering the key

Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
This commit is contained in:
Anton Danchenko 2018-09-14 13:26:01 +03:00
parent 64589d526f
commit c5549f5d03
No known key found for this signature in database
GPG Key ID: C2D4819B698627E4
2 changed files with 7 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class AbstractTestCase:
@property
def implicitly_wait(self):
return 2
return 5
errors = []

View File

@ -25,6 +25,12 @@ class PublicKeyEditBox(BaseEditBox):
super(PublicKeyEditBox, self).__init__(driver)
self.locator = self.Locator.accessibility_id('enter-contact-code-input')
def set_value(self, value):
for _ in range(2):
if self.text != value:
self.driver.info("Type '%s' to %s" % (value, self.name))
self.find_element().set_value(value)
class ScanContactCodeButton(BaseEditBox):
def __init__(self, driver):