如何多次运行关键字 [英] How to run keywords into multiple times

查看:51
本文介绍了如何多次运行关键字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的场景:

有一个名为搜索第一个值"的字段,我必须点击然后点击提交.

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

我必须重复这一步超过 100 次.我可以在 Robot 框架中做什么?

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

我的代码:

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

推荐答案

标准库有关键字Repeat Keyword

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

这篇关于如何多次运行关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆