I can't manage to run my cron with nightmarejs.   The first iteration of the function get_data() works great but after that the cron restarts and the function will not be triggered again.  Also "crawl ended" is never logged.  Do you know...
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, take the following as an example:  describe('test...
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 fold is captured with a zero length. I am strug...
I am trying to run an azure webjob which takes a json object and renders a webpage, then prints it to pdf, via the electron browser in Nightmare.js.  When I run this locally it works perfectly, but when I run it in azure webjob it never completes. I...
I am using Nightmare.js to print pdf's.  I send a request to the node server and build the page, using Nightmare to ensure the page has loaded, then print a pdf. But for each request I create a new electron window, how do I reuse the same window,...
I am using nightmare to login to a page and click a few links. Then I go to a specific url for which a POST request is made. I want to retrieve the json response from the POST request. So far, I have this  var Nightmare = require('nightmare')...
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,             switches: {...
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 any way to do this? My code in test.js  r...
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.   For example, when I run this:  phantomjs loadsp...
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 *run() {     var x = Date.now();...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.