提交优化策略关键字
This commit is contained in:
@@ -15,14 +15,14 @@ Menu
|
||||
${settings} create dictionary Proxy Profiles=sidebarProxy_Profiles WAN NAT Profiles=sidebarSetting_Wannat Certificate Managements=sidebarProxy_CertificateManagement Trouble Shooting=sidebarTrouble_shooting Advanced=sidebarAdvanced
|
||||
# 遍历一级菜单
|
||||
FOR ${list} ${num} IN ENUMERATE @{dict}
|
||||
run keyword if "${num}"=="${menuOne}" run keywords sleep 2
|
||||
run keyword if "${num}"=="${menuOne}" run keywords sleep ${sleep}
|
||||
... AND click element id=${dict}[${num}]
|
||||
... AND LeavePrompt ${OkorCancel}
|
||||
END
|
||||
# 遍历二级菜单
|
||||
FOR ${list} ${num} IN ENUMERATE @{${menuOne}}
|
||||
run keyword if "${num}"=="dashboard" Exit For Loop
|
||||
... ELSE IF "${num}"=="${menuTwo}" run keywords sleep 2
|
||||
... ELSE IF "${num}"=="${menuTwo}" run keywords sleep ${sleep}
|
||||
... AND click element id=${${menuOne}}[${num}]
|
||||
... AND LeavePrompt ${OkorCancel}
|
||||
END
|
||||
@@ -31,9 +31,9 @@ LeavePrompt
|
||||
[Arguments] ${OkorCancel}
|
||||
[Documentation] 调用次关键字前需要添加必填参数:
|
||||
... ${OkorCancel}:填入OK或Cancel
|
||||
sleep 1
|
||||
sleep ${sleep}
|
||||
${status} Run Keyword And Return Status Page Should Contain Changes you made are not saved. #判断页面是否包含该文本
|
||||
sleep 1
|
||||
sleep ${sleep}
|
||||
run keyword if "${status}"=="True" Existence ${OkorCancel}
|
||||
run keyword if "${status}"=="False" log go on
|
||||
Existence
|
||||
@@ -48,6 +48,6 @@ ClickOkorCancel
|
||||
[Arguments] ${OkorCancel}
|
||||
[Documentation] 调用次关键字前需要添加必填参数:
|
||||
... ${OkorCancel}:填入OK或Cancel
|
||||
sleep 1
|
||||
sleep ${sleep}
|
||||
run keyword if "${OkorCancel}"=="OK" click element xpath=//button[@class='el-button el-button--default el-button--small el-button--primary ']
|
||||
run keyword if "${OkorCancel}"=="Cancel" click element xpath=/html/body/div/div/div[3]/button[1]
|
||||
Reference in New Issue
Block a user