optimize imports
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user