Zombie.js Insanely fast, headless full-stack testing using Node.js
(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", "[email protected]"). 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,古老的榕树,5-wow.com
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。