remove mouse.wheel for mobile emulator
This commit is contained in:
+3
-3
@@ -56,7 +56,7 @@ class CommandorPage:
|
|||||||
}
|
}
|
||||||
self._setName(contact.last_name, contact.first_name)
|
self._setName(contact.last_name, contact.first_name)
|
||||||
self._setPhoneCountryAndStore()
|
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._setPhoneNumber(contact.phone)
|
||||||
self._set_email(contact.mail)
|
self._set_email(contact.mail)
|
||||||
self.setIdNumber(contact.passport)
|
self.setIdNumber(contact.passport)
|
||||||
@@ -164,7 +164,7 @@ class CommandorPage:
|
|||||||
document.getElementById("passport_id").value = id}""", id)
|
document.getElementById("passport_id").value = id}""", id)
|
||||||
|
|
||||||
def _checkCgu(self):
|
def _checkCgu(self):
|
||||||
self.page.mouse.wheel(0, random.randint(200, 600))
|
# self.page.mouse.wheel(0, random.randint(200, 600))
|
||||||
self.page.evaluate("""
|
self.page.evaluate("""
|
||||||
document.getElementById("cgu").focus();
|
document.getElementById("cgu").focus();
|
||||||
document.getElementById("cgu").checked = true;
|
document.getElementById("cgu").checked = true;
|
||||||
@@ -172,7 +172,7 @@ class CommandorPage:
|
|||||||
document.getElementById("processing").checked = true""")
|
document.getElementById("processing").checked = true""")
|
||||||
|
|
||||||
def clickOnValidBtn(self):
|
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();""")
|
self.page.evaluate("""document.getElementsByClassName("btn")[0].click();""")
|
||||||
|
|
||||||
def clear_app_data(self):
|
def clear_app_data(self):
|
||||||
|
|||||||
@@ -31,8 +31,4 @@ def config_and_start_jobs():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
init_logger()
|
|
||||||
logger = logging.getLogger()
|
|
||||||
logger.addHandler(logging.StreamHandler(stream=sys.stdout))
|
|
||||||
config_and_start_jobs()
|
config_and_start_jobs()
|
||||||
# start_waiting_sms()
|
|
||||||
Reference in New Issue
Block a user