Lotte 介绍
Lotte是一款自动化无图形化浏览器测试工具,采用phantomJs。
使用环境:
使用:
创建一个新文件lotte_github.js(最好是在一个空目录),复制下面的代码:
this.open('https://github.com', function() { this.describe('Sign Up button', function() { this.assert.ok(this.$('.signup-button').length, 'expects button to be in the DOM'); this.success(); }); });
运行,可查看以下输出:
/tmp/lotte_github.js @ https://github.com ✓ Sign Up button
Lotte 官网
https://github.com/StanAngeloff/lotte
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。