- 授权协议: MPL
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: http://www.slimerjs.org/index.html
- 软件文档: http://docs.slimerjs.org/current/
- 官方下载: http://www.slimerjs.org/download.html
软件介绍
SlimerJS 是一个提供给 Web 开发人员,可通过脚本编程控制的浏览器。它可以让你使用 Javascript 脚本操纵一个网页:打开一个网页,点击链接,修改的内容等,这对于做功能测试,页面自动机,网络监控,屏幕捕获等是非常有用的。
事实上,它是类似 PhantomJS 的一个工具,但是 SlimerJS 只能运行在 Gecko (Firefox)上而不是Webkit。SlimerJS 提供几乎和 PhantomJS 相同的 API,高度兼容 PhantomJS。SlimerJS 不仅是 PhantomJS 的一个克隆,还包含额外的功能。
SlimerJS 兼容 CasperJS 1.1 beta!!
示例代码:
var webpage = require('webpage').create();
webpage
.open('http://somewhere') // loads a page
.then(function(){ // executed after loading
// store a screenshot of the page
webpage.viewportSize =
{ width:650, height:320 };
webpage.render('page.png',
{onlyViewport:true});
// then open a second page
return webpage.open('http://somewhere2');
})
.then(function(){
// click somewhere on the second page
webpage.sendEvent("click", 5, 5,
'left', 0);
slimer.exit()
});
Hacking Growth
Sean Ellis、Morgan Brown / Crown Business / 2017-4-25 / USD 29.00
The definitive playbook by the pioneers of Growth Hacking, one of the hottest business methodologies in Silicon Valley and beyond. It seems hard to believe today, but there was a time when Airbnb w......一起来看看 《Hacking Growth》 这本书的介绍吧!
