首页 > Web开发 > 详细

Zombie.js Insanely fast, headless full-stack testing using Node.js

时间:2014-03-16 06:06:56      阅读:503      评论:0      收藏:0      [点我收藏+]

(92) Is there a better crawler than Scrapy? - Quora

Is there a better crawler than Scrapy?Edit

Insanely fast, headless full-stack testing using Node.js

Zombie.js Getting Started The API CSS Selectors Troubleshooting The Guts Download PDF   Google Group IRC: #zombie.js Github/Issues Changelog Annotated Source Code Coverage More Magic! Insanely fast, headless full-stack testing using Node.js The Bite If you‘re going to write an insanely fast, headless browser, how can you not call it Zombie? Zombie it is. Zombie.js is a lightweight framework for testing client-side JavaScript code in a simulated environment. No browser required. Let‘s try to sign up to a page and see what happens: var Browser = require("zombie"); var assert = require("assert"); // Load the page from localhost browser = new Browser() browser.visit("http://localhost:3000/", function () { // Fill email, password and submit form browser. fill("email", "zombie@underworld.dead"). fill("password", "eat-the-living"). pressButton("Sign Me Up!", function() { // Form submitted, new page loaded. assert.ok(browser.success);

Zombie.js Insanely fast, headless full-stack testing using Node.js,布布扣,bubuko.com

Zombie.js Insanely fast, headless full-stack testing using Node.js

原文:http://www.cnblogs.com/lexus/p/3600762.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!