浙江省高等学校教师教育理论培训

微信搜索“教师资格证岗前培训”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

(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);
posted on 2014-03-14 15:56  lexus  阅读(261)  评论(0编辑  收藏  举报