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:
parent
64589d526f
commit
c5549f5d03
|
@ -107,7 +107,7 @@ class AbstractTestCase:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def implicitly_wait(self):
|
def implicitly_wait(self):
|
||||||
return 2
|
return 5
|
||||||
|
|
||||||
errors = []
|
errors = []
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,12 @@ class PublicKeyEditBox(BaseEditBox):
|
||||||
super(PublicKeyEditBox, self).__init__(driver)
|
super(PublicKeyEditBox, self).__init__(driver)
|
||||||
self.locator = self.Locator.accessibility_id('enter-contact-code-input')
|
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):
|
class ScanContactCodeButton(BaseEditBox):
|
||||||
def __init__(self, driver):
|
def __init__(self, driver):
|
||||||
|
|
Loading…
Reference in New Issue