小编gra*_*lvo的帖子

如何在机器人框架中编写循环

我做了我的第一个简单的测试用例,我有一个问题.在RF中可以写入循环吗?我想从地址和修改后的变量"i"的地址中检索值.我想执行直到存在这样的地址,因为它是表中的一行.

${f1}       A
${f_temp}   B

While   ${f1} != ${f_temp}
or
While element xpath=//${i} is visible


\  ${F_temp}                Get Text     xpath=//${i}
\  ${i}                     ${i}+1
\  Run Keyword And Continue On Failure   Should be equal  ${f_temp}  ${f1}
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

automated-tests robotframework

8
推荐指数
2
解决办法
4万
查看次数

标签 统计

automated-tests ×1

robotframework ×1