Closed jeroentvb closed 5 years ago
Same issue here, seeing:
nightmare queuing process start +0ms
nightmare queueing action "goto" for about:blank +3ms
nightmare running +0ms
nightmare electron child process exited with code null: undefined +185ms
^C nightmare electron child process not started yet, skipping kill. +1s
I just tried deleting node_modules and installing it again. A simple .goto() and .wait() seem to work. I'll try building some more complex code and report back.
The code I'm using for my project works again. Removing node_modules and reinstalling them did the trick.
I'm using nightmare to scrape the contents of a dynamic web page, but it doesn't seem to even start.
I've tried setting up a test project using a basic example from the README, which also doesn't seem to return anything.
The code I'm using for the test
```JS const Nightmare = require('nightmare') const nightmare = Nightmare({ show: true }) nightmare .goto('https://duckduckgo.com') .type('#search_form_input_homepage', 'github nightmare') .click('#search_button_homepage') .wait('#r1-0 a.result__a') .evaluate(() => document.querySelector('#r1-0 a.result__a').href) .end() .then(result => console.log(result)) .catch(error => console.error('Search failed:', error)) ```I'm using node v11.1.0 on the ubuntu in the ubuntu shell on windows 10, but can also report that it isn't working on macOs with not v9 either.
The code from my own project
```JS nightmare .goto('https://www.windguru.cz/46940') .wait('.spot-name') .wait('#tabid_2_0_dates') .wait('#tabid_2_0_WINDSPD') .wait('#tabid_2_0_GUST') .wait('#tabid_2_0_SMER') .evaluate(() => document.querySelector('body').outerHTML) .end() .then(function(html) { // Do stuff with the HTML using cheerio }) .catch(error => console.log(error)) ```