How to run keywords into multiple times

可紊 提交于 2019-12-13 10:33:39

问题


My scenario:

There is field called "search first value" i have to click on Then click on Submit.

I have to repeat this step more than 100 times. How can i do in Robot framework?

MY code:

[Documentation]   Resubmit
 wait until element is enabled   ${CLICK_RESUBMIT}
 click element   ${CLICK_RESUBMIT}
 sleep   2s
 confirm action
 repeat keyword  5times Go to Previous Page

回答1:


Standard library have keyword Repeat Keyword

http://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Repeat%20Keyword



来源:https://stackoverflow.com/questions/52259584/how-to-run-keywords-into-multiple-times

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!