FOR循环不包含关键字

时间:2018-09-17 10:00:12

标签: robotframework

这是我的关键字,我想重复500次以上。因此,我尝试了FOr循环,但收到一条消息,提示“循环不包含任何关键字。

test_case 1.0 -> Click on Resubmit

 wait until element is enabled  ${CLICK_FIRST}
 click element  ${CLICK_FIRST}
 wait until element is enabled   ${CLICK_RESUBMIT}
 click element   ${CLICK_RESUBMIT}
 confirm action
 sleep   5s
  :FOR  ${CLICK_FIRST}  IN  @{10}
  Run Keyword If    ${CLICK_FIRST} == 'CONTINUE'    Continue For Loop

1 个答案:

答案 0 :(得分:1)

在假定要在for循环内执行的RF语句中,后跟\ 标签
您的for循环将如下所示,并且将迭代100次以上

gulp-minify

您要求的其他方式

:FOR   ${Index}  IN  0  100
\    Run Keyword If ${CLICK_FIRST} == 'CONTINUE'    Continue For Loop