diff --git a/commandor_page.py b/commandor_page.py index 06a10cf..9c25288 100644 --- a/commandor_page.py +++ b/commandor_page.py @@ -56,7 +56,7 @@ class CommandorPage: } self._setName(contact.last_name, contact.first_name) self._setPhoneCountryAndStore() - self.page.mouse.wheel(0, random.randint(100, 200)) + # self.page.mouse.wheel(0, random.randint(100, 200)) self._setPhoneNumber(contact.phone) self._set_email(contact.mail) self.setIdNumber(contact.passport) @@ -164,7 +164,7 @@ class CommandorPage: document.getElementById("passport_id").value = id}""", id) def _checkCgu(self): - self.page.mouse.wheel(0, random.randint(200, 600)) + # self.page.mouse.wheel(0, random.randint(200, 600)) self.page.evaluate(""" document.getElementById("cgu").focus(); document.getElementById("cgu").checked = true; @@ -172,7 +172,7 @@ class CommandorPage: document.getElementById("processing").checked = true""") def clickOnValidBtn(self): - self.page.mouse.wheel(0, random.randint(400, 500)) + # self.page.mouse.wheel(0, random.randint(400, 500)) self.page.evaluate("""document.getElementsByClassName("btn")[0].click();""") def clear_app_data(self): diff --git a/scheduler.py b/scheduler.py index 0fb747b..7383208 100644 --- a/scheduler.py +++ b/scheduler.py @@ -31,8 +31,4 @@ def config_and_start_jobs(): if __name__ == '__main__': - init_logger() - logger = logging.getLogger() - logger.addHandler(logging.StreamHandler(stream=sys.stdout)) - config_and_start_jobs() - # start_waiting_sms() \ No newline at end of file + config_and_start_jobs() \ No newline at end of file