From e5425f9888684082295a62ba9216256600b23e27 Mon Sep 17 00:00:00 2001 From: byb11 Date: Thu, 4 Mar 2021 14:12:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9Uipolicy=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 02-Keyword/tsg_ui/policy/UIPolicy.robot | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/02-Keyword/tsg_ui/policy/UIPolicy.robot b/02-Keyword/tsg_ui/policy/UIPolicy.robot index b195b97..d302139 100644 --- a/02-Keyword/tsg_ui/policy/UIPolicy.robot +++ b/02-Keyword/tsg_ui/policy/UIPolicy.robot @@ -582,9 +582,10 @@ SecurityApplicationSearch sleep ${sleep} click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[5]/div[2]/div[2]/div/div[3]/div/div/ul/li[1] sleep ${sleep} - ${status} Run Keyword And Return Status Page Should Contain Element xpath=/html/body/div/div/div[3]/button[2] - log ${status} - run keyword if "${status}" == "True" run keywords click element xpath=/html/body/div/div/div[3]/button[2] + ${status} Run Keyword And Return Status Page Should Contain Element xpath=/html/body/div[last()]/div/div[3]/button[2] + log ${status} + run keyword if "${status}" == "True" run keywords sleep 1 + ... AND click element xpath=/html/body/div/div/div[3]/button[2] ... AND sleep ${sleep} ... ELSE log 未检测弹出框不操作 # ${style}= Get Element Attribute class=el-message-box__wrapper style @@ -706,7 +707,7 @@ Create-SecurityFilter-judge ... ${Filter}:是一个列表,列表中填入filter类型,例如Host或URL等 ... name:各个对象名称的列表 ... 判断filter是否可以点击 - ${class}= Get Element Attribute id=interceptionadd_add_filter class + ${class}= Get Element Attribute xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[8]/div[1]/div/div class run keyword if "${class}"=="addobject addobject-long-list obj-content-null filter-width-style cursor addobject-long-list-disabled" log filter不可点击,不可添加filter run keyword if "${class}"=="addobject addobject-long-list obj-content-null filter-width-style cursor" run keywords sleep ${sleep} ... AND Create-SecurityFilter ${Application} ${Filter} ${Hostname} ${URLname} ${Request Headername} ${Response Headername} ${Request Contentname}