Commit be651589 by 宋鹏博

添加等待时间

parent bb889445
import time import time
import allure import allure
from selenium.common import ElementNotInteractableException
from common.DButils import DButils from common.DButils import DButils
from common.untils import DriverTools from common.untils import DriverTools
...@@ -30,11 +31,14 @@ class TestPrequalification: ...@@ -30,11 +31,14 @@ class TestPrequalification:
# AI预审流程 # AI预审流程
@allure.feature("AI预审流程") @allure.feature("AI预审流程")
def test_uodate_file(self): def test_uodate_file(self):
time.sleep(10) try:
self.AI.to_AI_Prequalification() time.sleep(10)
time.sleep(5) self.AI.to_AI_Prequalification()
self.aiprequailification.update_pdf(updata_pdf_path) time.sleep(5)
time.sleep(5) self.aiprequailification.update_pdf(updata_pdf_path)
time.sleep(5)
except ElementNotInteractableException as e:
print(f"异常:{e}")
data = self.dbtuils.select_sql( data = self.dbtuils.select_sql(
f"SELECT file_name,status FROM aireview.assistant_task where create_user ={userid} and assistant_code " f"SELECT file_name,status FROM aireview.assistant_task where create_user ={userid} and assistant_code "
"='preliminarytrial' order by biz_id desc limit 1;") "='preliminarytrial' order by biz_id desc limit 1;")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment