nightmare icon indicating copy to clipboard operation
nightmare copied to clipboard

DuckDuckGo example not working

Open adams-family opened this issue 4 years ago • 1 comments

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" ]

adams-family avatar May 15 '20 09:05 adams-family

Check your Electron path once and Did u import nightmare?

shashanka2a avatar Sep 03 '20 04:09 shashanka2a