try to test record audio
This commit is contained in:
@@ -11,6 +11,7 @@ import params
|
||||
from params import PROXY_SERVER, PROXY_PASSWORD
|
||||
from pojo.ReserveResultPojo import ReserveResultPojo, PublishType
|
||||
from pojo.contact_pojo import ContactPojo
|
||||
from workers.SolveCaptch import SolveCaptcha
|
||||
|
||||
RDV_URL = "https://rendezvousparis.hermes.com/client/register"
|
||||
|
||||
@@ -92,6 +93,7 @@ class CommandorPage:
|
||||
self.setIdNumber(self.contact.passport)
|
||||
#
|
||||
self._checkCgu()
|
||||
self.click_recapcha_checkbox()
|
||||
# wait for sms_code field
|
||||
# self.clickOnValidBtn()
|
||||
self.thread_event = e
|
||||
@@ -157,7 +159,7 @@ class CommandorPage:
|
||||
self.get_errors()
|
||||
|
||||
def on_document_loaded(self):
|
||||
print("on_document_loaded called")
|
||||
self.logger.info("on_document_loaded called")
|
||||
|
||||
def _setPhoneCountryAndStore(self):
|
||||
try:
|
||||
@@ -261,6 +263,15 @@ class CommandorPage:
|
||||
def clear_app_data(self):
|
||||
pass
|
||||
|
||||
|
||||
def click_recapcha_checkbox(self):
|
||||
captcha_solver = SolveCaptcha(self.page)
|
||||
captcha_solver.start()
|
||||
del captcha_solver
|
||||
# checkbox = self.page.wait_for_selector(
|
||||
# "#recaptcha-anchor")
|
||||
# checkbox.click()
|
||||
|
||||
def fill_otp(self, otp: str):
|
||||
self.page.focus(OTP_FIELD_ID)
|
||||
time.sleep(get_random_wait_time())
|
||||
|
||||
Reference in New Issue
Block a user