local changes on the commandor_page.py
This commit is contained in:
+4
-4
@@ -54,7 +54,7 @@ class CommandorPage:
|
||||
self._setName(contact.last_name, contact.first_name)
|
||||
self._set_email(contact.mail)
|
||||
self.setIdNumber(contact.passport)
|
||||
self.checkCgu()
|
||||
self._checkCgu()
|
||||
# wait for sms_code field
|
||||
self.clickOnValidBtn()
|
||||
# self.page.goto("file:///Users/lpan/Downloads/input_otp.html")
|
||||
@@ -62,7 +62,7 @@ class CommandorPage:
|
||||
otp_input.wait_for(state='visible')
|
||||
on_ready_for_otp(e, self)
|
||||
event_is_set = e.wait()
|
||||
logging.debug('event set: %s', event_is_set)
|
||||
logging.info('event set: %s', event_is_set)
|
||||
self.fill_otp(self.otp_value)
|
||||
self.clickOnValidBtn()
|
||||
otp_sent = self.page.locator(MESSAGE_FIELD_CLASS)
|
||||
@@ -114,7 +114,7 @@ class CommandorPage:
|
||||
def setIdNumber(self, id):
|
||||
self.page.evaluate(""" (id) => document.getElementById("passport_id").value = id""", id)
|
||||
|
||||
def checkCgu(self):
|
||||
def _checkCgu(self):
|
||||
self.page.evaluate("""document.getElementById("cgu").checked = true;
|
||||
document.getElementById("processing").checked = true""")
|
||||
|
||||
@@ -128,7 +128,7 @@ class CommandorPage:
|
||||
self.page.fill(OTP_FIELD_ID, otp)
|
||||
|
||||
def reset_air_plan_mode(self):
|
||||
print("will close ")
|
||||
print("will close browser")
|
||||
self.browser.close()
|
||||
|
||||
def publish_message_to_queue(self, contact: ContactPojo, message: str, url: str):
|
||||
|
||||
Reference in New Issue
Block a user