Selenium IDE - 刷新直到元素出现

Selenium IDE - Refresh until element is present

我必须等待不确定的时间才能完成一项任务并创建一个新任务,然后才能继续我的脚本。所以我在刷新之前停顿了很长时间,然后检查 link 是否可用。

例如

|暂停 | 600000 | |

|刷新并等待 | | |

|点击并等待 | link=新 | |

不幸的是,这都是猜测,所以有时脚本会继续,有时会失败。是否有命令或一些解决方案可以用于在一定时间间隔刷新并继续检查link是否可用?

你需要 Selenium IDE 流量控制来做到这一点:

label               | Start
refresh
storeElementPresent | link=new          | trigger
gotoIf              | ${trigger}==false | Start
click               | link=new