nightmare Questions

4

I'm using Electron + Nightmare.js to do unit tests. I need to copy a string to the clibboard > focus a element > paste the content. Then the test is about if my JavaScript is handling behaving pro...
Vivica asked 24/4, 2017 at 9:48

4

Solved

I can't seem to get nightmare.js to work on an Ubuntu Linux 14.04 server [via DigitalOcean]. I've installed PhantomJS (1.9.8) and Node (4.2.4), and they are working well as far as I can tell. Fo...
Jarrod asked 14/1, 2016 at 16:44

3

Solved

I am trying to open a TWA inside my app and have researched for 2 days. I've already managed to create a single TWA app, no fuss, just edit the manifest and a few things more. Now I need to have ...
Ginsburg asked 31/8, 2019 at 22:27

1

I am trying to run nightmare on the browser but I have learnt that it is not possible so I am trying to use webpack to bundle it and build it. When I am trying to build it with npx webpack --config...
Homecoming asked 17/12, 2019 at 19:55

1

As the title implies I am trying to make my script timeout forcefully, specifically if a condition (that returns done()) isn't met. Here is some code: import * as Nightmare from "nightmare"; des...
Kella asked 26/4, 2018 at 1:54

0

I'm attempting to use Nightmare to test front-end code which will eventually manipulate an SVG client-side. I'm using jest to write these tests. I'm attempting to define an asynchronous utility ...
Morelock asked 29/7, 2017 at 18:36

2

Solved

I'm running a nightmare.js script where where I'm trying to take a screenshot of multiple elements on a page. The first element is captured just fine, but every other element that is below the fo...
Sontag asked 16/6, 2017 at 3:31

1

I have been writing some test cases in PhantomJs and CasperJs. Recently I stumbled on NightmareJs which uses ElectronJs. I wanted to know if I can automate POST requests (such as below) in Nigthm...
Ghostly asked 6/7, 2016 at 15:11

1

Solved

I'm able to set an HTTP proxy just fine for NightmareJS but how do I specify the type (http/socks5/socks4)? Here's the code I use to set an HTTP proxy: const nightmare = Nightmare({ show:true, s...
Keratoid asked 4/5, 2017 at 23:48

4

I am using Nightmare to create a automated downloader for today's newspaper. I managed to login and go the the specified page. However I could not find out how to download a file with Nightmare. ...
Stilliform asked 24/11, 2014 at 16:32

3

Solved

I know the title of the question looks very vague! But that's there's to it. I installed nodejs on my production server, which had phantomjs working properly, then I installed nightmare via npm in...

1

Solved

Thanks to @pipo_dev I was able to solve an issue I was having with multiple evaluations in NightmareJS, one thing that I would like to know is if I can provide multiple reports for the same test, t...
Kayceekaye asked 28/10, 2016 at 2:59

1

Solved

NightmareJS works great when I am running one evaluation, but as I interact with the page I need to do more evaluations as things pass. However using the docs I tried a simple sample of chaining ev...
Trypanosome asked 27/10, 2016 at 18:53

1

I am running into an error, when including vanilla JS in nightmare.js. I want to make sure that every email in my array is inputted into the system. A for loop would be ideal, but I have continuall...
Shul asked 25/10, 2016 at 22:23

1

Solved

I'm currently working on some scraping with cheerio and nightmare. The reason why I'm using both and not just cheerio is because I have to manipulate the site to get to the part that I want to scra...
Paske asked 25/9, 2016 at 20:30

3

Solved

I am trying to understand how callbacks work so I created a function and passed a second argument named 'callback', which I call at the end of the function with 'callback(arr)' . However I am getti...
Shavers asked 4/9, 2016 at 11:14

2

Solved

There is famous issue with nightmare and electron not running on headless linux servers. The official electron docs suggest to use xvfb in order to fake the display. They suggest to use this .yml f...
Caridadcarie asked 4/6, 2016 at 0:57

1

Solved

I'm trying to understand how I should make a nightmare.js script using "if-then" logic. For example var Nightmare = require('nightmare'); var nightmare = Nightmare({ show: true, paths: { userDa...
Novelize asked 16/6, 2016 at 11:15

1

I'm attempting to scrape dynamic paging websites with Nightmare / Electron. I don't see a way to perform a do... until with nightmare functions OR a way to chain evaluate calls with logic. Here's...
Fulmis asked 4/1, 2016 at 17:45

1

Solved

I'm using nightmare js to log into a site that sets a token in local storage. However, any future tests I run the user is already logged in. I'm guessing the local storage wasn't cleared. Is there ...
Gnosticize asked 26/11, 2015 at 18:11

1

Solved

I running following code using Nightmare.js: var test = new Nightmare() .viewport(1000, 1000) .useragent("Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2...
Olva asked 11/11, 2015 at 20:44

1

Solved

I am building a scraper to make JS single page applications easily crawlable. After some incredible frustration with PhantomJS (memory leaks, outdated webkit, undead processes, among many other pr...
Elizabethelizabethan asked 16/9, 2015 at 15:29

1

Solved

I built a simple node script using nightmare.js to scrape websites var Nightmare = require('nightmare'); var vo = require('vo'); vo(run)(function(err, result) { if (err) throw err; }); function...
Ferdinand asked 15/9, 2015 at 14:46
1

© 2022 - 2024 — McMap. All rights reserved.