optimize imports

This commit is contained in:
Lei PAN
2022-05-18 16:03:12 +02:00
parent 08a5cc2808
commit 2ed2c6d82e
4 changed files with 12 additions and 4 deletions
+4
View File
@@ -25,6 +25,7 @@ MESSAGE_FIELD_CLASS = ".message"
CONFIRMED_MESSAGE = "Your request for a Leather Goods appointment has been registered"
DOUBLE_REQUEST_ERROR_MESSAGE = "A request with the same data has already been validated today."
TOO_MANY_REQUEST_ERROR_MESSAGE = "Due to a large number of requests"
CAPTCHA_ERROR_MESSAGE = "Error verifying captcha, please try again"
TIME_OUT = 400000
OTP_TIMEOUT = 240
@@ -220,6 +221,9 @@ class CommandorPage:
# close browser
time.sleep(2)
self.browser.close()
elif CAPTCHA_ERROR_MESSAGE in erro_content:
# this email has been already used
params.oracle_log_sender.send_captcha_error(self.contact)
def _set_email(self, email):
time.sleep(get_random_wait_time())