当前位置: 首页 > 工具软件 > Zombie.js > 使用案例 >

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

皇甫雨华
2023-12-01

(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);
 类似资料:

相关阅读

相关文章

相关问答