博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
javascript_JavaScript waitForever
阅读量:2515 次
发布时间:2019-05-11

本文共 729 字,大约阅读时间需要 2 分钟。

javascript

waitForever.  By using this function, paired with
waitForever 。 通过使用与
await, I can interact with the page while a given test is running to find the problem!
await配对的此功能,我可以在运行给定测试的同时与页面进行交互以发现问题!

JavaScript (The JavaScript)

waitForever is a super small snippet:
waitForever是一个超级小片段:
function waitForever() {  return new Promise(r => {});}// Usage:await waitForever();The function uses a promise which never resolves, thus no additional statements are triggered while also not locking up the browser.  From there I can click around and explore elements to find what I've messed up in my test.Utility functions like these make web development much easier and more enjoyable.  Add this one to your toolbox!

翻译自:

javascript

转载地址:http://ckvwd.baihongyu.com/

你可能感兴趣的文章
洛谷 P3049 Landscaping ( 贪心 || DP)
查看>>
洛谷 P1059 明明的随机数
查看>>
python 基础大纲
查看>>
window自动任务实现数据库定时备份
查看>>
Windows 7 Ultimate(旗舰版)SP1 32/64位官方原版下载(2011年5月12日更新版)
查看>>
javascript操作cookie
查看>>
深入理解HTTP协议(转)
查看>>
NHibernate讲解
查看>>
客户端—表单验证信息—并能否提交到数据库
查看>>
Android开发环境搭建(原创)
查看>>
java IO流 对文件操作的代码集合
查看>>
js / jquery 获取和设置 FCK Editor 的值
查看>>
OpenJudge计算概论-与7无关的数
查看>>
proxy-target-class="true" 与proxy-target-class="false"的区别
查看>>
npm安装包很慢
查看>>
jquery是如何清除ajax缓存的
查看>>
Android核心分析(转载)
查看>>
自学_HTML<一>
查看>>
IOS 发布 升级新版本
查看>>
上传绕过补充
查看>>