Questions tagged [nightmare]

Nightmare is a node module which implements a high-level bridge between node.js and the headless PhantomJS browser. Nightmare v2 switches to electron (atom-shell) as the underlying browser. Please include the version that you use in your question.

Definition:

According to the Official Documentation:

Nightmare is a high-level browser automation library from Segment.

The goal is to expose a few simple methods that mimic user actions (like goto, type and click), with an API that feels synchronous for each block of scripting, rather than deeply nested callbacks. It was originally designed for automating tasks across sites that don't have APIs, but is most often used for UI testing and crawling.

Under the covers it uses Electron, which is similar to PhantomJS but roughly twice as fast and more modern.

Important Links:

456 questions
-1
votes
1 answer

My nightmare test isnt getting into my evaluate statement

Getting some practice running tests with mocha chai and nightmare. Everything seems to work until I get into my evaluate block. var Nightmare = require('nightmare'), should = require('chai').should() describe('Frontend Masters', function() { …
ceckenrode
  • 4,543
  • 7
  • 28
  • 48
-1
votes
2 answers

Nightmarejs screen resolution

Can I change the screen resolution in nightmarejs? (Not a viewportSize) For example, how it works in Casperjs: var casper = require("casper").create({ onPageInitialized: function (page) { page.evaluate(function () { …
Noneme
  • 23
  • 4
-2
votes
1 answer

what are those triple dot inside the array? marked it with a comment

I was learning how to web scrape in nodejs and came across this kind of array. What is the meaning? articles = [ //WHAT IS THIS ...articles, ...new_articles ];
41x3n
  • 5
  • 1
  • 3
-2
votes
2 answers

How to run nightmare app in headless mode?

I have a web scraper which uses the the nightmare browser automation library. Everytime I would run my nodejs app it opens up a browser window and loads the page I am trying to scrape. But I want to run it completely in the console without any…
-3
votes
1 answer

What difference is between these these two codes?

I have asked a question yesterday. It could be solved thanks for an answer. But I got another problem about heap out of memory. Description of the code: this is a code for answering words automatically and randomly in a website. Until first for…
Mimin
  • 17
  • 6
-3
votes
1 answer

Return iterable with Resolve in Promise.all

I would like to return not only the result of this Promise but also the iterable, the url, with which it was a called. urls is an array of urls. function findMainLink(urls) { return Promise.all(urls.map((url) => { var result = nightmare …
warg
  • 41
  • 4
1 2 3
30
31