mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-14 10:46:21 +00:00
Fixed accept_agreements method
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
This commit is contained in:
parent
f81f3e0d05
commit
49bc773037
@ -185,12 +185,16 @@ class BaseView(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def accept_agreements(self):
|
def accept_agreements(self):
|
||||||
|
iterations = int()
|
||||||
|
from views.sign_in_view import CreateAccountButton
|
||||||
|
while iterations <= 3 and not CreateAccountButton(self.driver).is_element_displayed():
|
||||||
for button in self.ok_button, self.continue_button:
|
for button in self.ok_button, self.continue_button:
|
||||||
try:
|
try:
|
||||||
button.wait_for_element(15)
|
button.wait_for_element(15)
|
||||||
button.click()
|
button.click()
|
||||||
except (NoSuchElementException, TimeoutException):
|
except (NoSuchElementException, TimeoutException):
|
||||||
pass
|
pass
|
||||||
|
iterations += 1
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def logcat(self):
|
def logcat(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user