修改Uipolicy关键字

This commit is contained in:
byb11
2021-03-04 14:12:42 +08:00
parent 238fb298b8
commit e5425f9888

View File

@@ -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}