mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-14 02:35:54 +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):
|
||||
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:
|
||||
try:
|
||||
button.wait_for_element(15)
|
||||
button.click()
|
||||
except (NoSuchElementException, TimeoutException):
|
||||
pass
|
||||
iterations += 1
|
||||
|
||||
@property
|
||||
def logcat(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user