nightmare
nightmare copied to clipboard
DuckDuckGo example not working
Hi,
it seems to me that the DuckDuckGo example from the main MD document is not working:
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(console.log)
.catch(error => {
console.error('Search failed:', error)
})
This does nothing at all - no output, no error message.
Running in Docker CE and Node 10.8.
Dockerfile:
WORKDIR /usr/src/app
CMD [ "node", "index.js" ]
Check your Electron path once and Did u import nightmare?