修改Uipolicy关键字
This commit is contained in:
@@ -582,9 +582,10 @@ SecurityApplicationSearch
|
|||||||
sleep ${sleep}
|
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]
|
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}
|
sleep ${sleep}
|
||||||
${status} Run Keyword And Return Status Page Should Contain 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}
|
log ${status}
|
||||||
run keyword if "${status}" == "True" run keywords click element xpath=/html/body/div/div/div[3]/button[2]
|
run keyword if "${status}" == "True" run keywords sleep 1
|
||||||
|
... AND click element xpath=/html/body/div/div/div[3]/button[2]
|
||||||
... AND sleep ${sleep}
|
... AND sleep ${sleep}
|
||||||
... ELSE log 未检测弹出框不操作
|
... ELSE log 未检测弹出框不操作
|
||||||
# ${style}= Get Element Attribute class=el-message-box__wrapper style
|
# ${style}= Get Element Attribute class=el-message-box__wrapper style
|
||||||
@@ -706,7 +707,7 @@ Create-SecurityFilter-judge
|
|||||||
... ${Filter}:是一个列表,列表中填入filter类型,例如Host或URL等
|
... ${Filter}:是一个列表,列表中填入filter类型,例如Host或URL等
|
||||||
... name:各个对象名称的列表
|
... name:各个对象名称的列表
|
||||||
... 判断filter是否可以点击
|
... 判断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 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}
|
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}
|
... AND Create-SecurityFilter ${Application} ${Filter} ${Hostname} ${URLname} ${Request Headername} ${Response Headername} ${Request Contentname}
|
||||||
|
|||||||
Reference in New Issue
Block a user