Giter VIP home page Giter VIP logo

nightmare-examples's Introduction

nightmare-examples

This project contains supplementary examples and documentation for Nightmare JS.

Documentation

Getting Started

New to Nightmare? The most basic way to use it is with promises or callbacks. Here are a few examples:

Nightmare and Generators

Several JavaScript libraries use generators to give you a simpler way to deal with asynchronous events. Here’s how to use Nightmare with some of them:

Extending Nightmare

Nightmare may not do everything out of the box that you need it to do.

  • .action() - Look here if adding a method that does a specific activity in the browser.
  • .use() - Wrap several actions up for reusability in one tidy place.

Common Pitfalls

Working with an automated web browser can be complex. Here are a few common gotchas and issues you might run into while working with Nightmare:

Known Issues

Here are some known problems with Nightmare:

Examples

All pages above have accompanying scripts you can actually run. To get started, you’ll need to make sure you install their dependencies first by running npm install.

After that, all the examples are runnable using node [example].

Additions and Corrections

If something has been missed, needs correcting, or you have a question, feel free to open an issue or pull request.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.