Commit 6602743b by Administrator

2.19提交

parent 346c94fa
......@@ -141,11 +141,12 @@ class BusinessKnowledgePage(BasePage):
def isExistKeyInDocument(self,key_name=None,documents=None):
flag = True
for document in documents:
actual_document_name = document.find_element(By.XPATH,"./td[2]/div/div").getAttribute("title")
actual_document_name = document.find_element(By.XPATH,"./td[2]/div/div").get_attribute("title")
if not actual_document_name.find(key_name):
flag = False
logger.info("搜索失败,搜索出额外文档")
return flag
return flag
......
......@@ -8,3 +8,4 @@
2024-02-19T18:04:49.471174+0800 - INFO - 发生报错:报错信息为'WebElement' object has no attribute 'get_element'
2024-02-19T18:10:18.397061+0800 - INFO - 发生报错:报错信息为'WebElement' object has no attribute 'get_element'
2024-02-19T18:15:01.900058+0800 - INFO - 发生报错:报错信息为'WebElement' object has no attribute 'getAttribute'
2024-02-19T18:24:37.819043+0800 - INFO - 发生报错:报错信息为assert None == True
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