0
点赞
收藏
分享

微信扫一扫

【Robot Framework】之 知识补充


忧伤,只能自己摸索啦。希望能帮助小白们。

* Topic1:Click element
* Topic2: 多重for循环
* Topic3:ul下有多少个li呢

Topic 1 :Click element

这个嘛。F5文档会详细点,这里只是给个演示哦。

【Robot Framework】之 知识补充_robot-framework


【Robot Framework】之 知识补充_for_02

Topic 2: 多重for循环

RIDE不能直接使用FOR作为多重循环。

要使用多重循环,得自定义关键字,在关键字中写第n层循环。

【Robot Framework】之 知识补充_click-elem_03


【Robot Framework】之 知识补充_click-elem_04

Topic 3:ul下有多少个li呢

若我想要获得ul下有多个li呢。

这个问题关于js,所以应该由js来解决。

${station-li-num}  execute Javascript  return $("#fromStation").find('li').length;

//当然可以在后面的js中写alert,并且页面会显示哦

【Robot Framework】之 知识补充_click-elem_05


举报

相关推荐

0 条评论