remove mouse.wheel for mobile emulator

This commit is contained in:
2022-04-04 15:17:50 +02:00
parent 9786e81c4d
commit 2a785cd92c
2 changed files with 4 additions and 8 deletions
+3 -3
View File
@@ -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):
+1 -5
View File
@@ -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()
config_and_start_jobs()