add wait time for page
This commit is contained in:
+4
-1
@@ -174,7 +174,10 @@ class CommandorPage:
|
|||||||
def clickOnValidBtn(self):
|
def clickOnValidBtn(self):
|
||||||
# self.page.mouse.wheel(0, random.randint(400, 500))
|
# self.page.mouse.wheel(0, random.randint(400, 500))
|
||||||
time.sleep(get_random_wait_time())
|
time.sleep(get_random_wait_time())
|
||||||
self.page.evaluate("""document.getElementsByClassName("btn")[0].click();""")
|
self.page.evaluate("""document.getElementsByClassName("btn")[0].focus();""")
|
||||||
|
time.sleep(get_random_wait_time())
|
||||||
|
self.page.evaluate("""
|
||||||
|
document.getElementsByClassName("btn")[0].click();""")
|
||||||
|
|
||||||
def clear_app_data(self):
|
def clear_app_data(self):
|
||||||
pass
|
pass
|
||||||
|
|||||||
+4
-4
@@ -13,7 +13,7 @@ from params import MODEM_POOL_PORTS, CARD_POOL_PORT
|
|||||||
from pojo.serial_modem import SerialModem
|
from pojo.serial_modem import SerialModem
|
||||||
from utils.excel_reader import ExcelHelper
|
from utils.excel_reader import ExcelHelper
|
||||||
|
|
||||||
OTP_TIMEOUT = 40
|
OTP_TIMEOUT = 60
|
||||||
thread_event = None
|
thread_event = None
|
||||||
current_gsm_modem = None
|
current_gsm_modem = None
|
||||||
card_pool = CardPool(CARD_POOL_PORT)
|
card_pool = CardPool(CARD_POOL_PORT)
|
||||||
@@ -108,9 +108,9 @@ def start_waiting_sms():
|
|||||||
if len(contact) > 0:
|
if len(contact) > 0:
|
||||||
modem.phone_number = contact[0].phone
|
modem.phone_number = contact[0].phone
|
||||||
modem.contact = contact[0]
|
modem.contact = contact[0]
|
||||||
start_to_handle_sms(modem)
|
start_to_handle_sms(modem)
|
||||||
# else:
|
else:
|
||||||
# print("not found, skip")
|
print("contact not found, skip")
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
print(error)
|
print(error)
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user