nightmare

Download a file using Nightmare

和自甴很熟 提交于 2019-11-27 15:09:04
问题 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. var Nightmare = require('nightmare'); new Nightmare() .goto('https://login.nrc.nl/login?service=http://digitaleeditie.nrc.nl/welkom') .type('input[name="username"]', 'Username') .type('input[name="password"]','Password') .click('button[type="submit"]') .wait() .goto('http://digitaleeditie.nrc.nl

Nightmare.js error: Search failed: Nothing responds to “goto”

你离开我真会死。 提交于 2019-11-27 08:27:59
问题 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 continually run into error such as: Search failed: Nothing responds to "goto" Here is my code: var jquery = require('jquery'); var Nightmare = require('nightmare'); var nightmare = Nightmare({ show: true, dock: true }); var siteName = "*********"; var username = "*********"; var password = "*********"; var