等到页面加载完毕 [英] wait until the page is loaded

查看:89
本文介绍了等到页面加载完毕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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操作,请使用

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屋!

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