等到页面加载完毕 [英] wait until the page is loaded
问题描述
在Robot Framework中,任何库中的任何关键字都可以实现吗? 打开浏览器和转到只是转到请求的URL,而不必等到页面文档被完全加载.
In Robot Framework, does any keyword in any library implement this? Open Browser and Go To just go to the requested URL but don't wait until the page document is fully loaded.
推荐答案
看看此讨论.除了Ajax,您实际上不需要等待任何其他事项. 如果您使用的是Angular,请查看 extendedselenium2library ,它实现了每个人都在等待Angular操作关键字.
Have a look at this discussion. You don't really need to wait for anything apart from Ajax. In case you are using Angular, have a look at extendedselenium2library that implements waiting for Angular actions with every keyword.
如果您不使用Angular,但是在继续进行测试之前知道希望执行的Ajax操作,请使用等待直到元素可见为止关键字,并带有一个针对您的Ajax请求的元素的选择器.
If you are not using Angular, but you know which Ajax action you expect will fire before you can proceed with your test, have a Wait Until Page Contains Element or Wait Until Element Is Visible keyword with a selector for an element that is specific for your ajax request.
这篇关于等到页面加载完毕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!