Nightmare.js

Every method is a simple English command: goto, refresh, click, type… you can check out Nightmare’s full API here.

Nightmare lets you simplify deeply nested callbacks into a few sequential statements. Here’s an example search on Yahoo:

yield Nightmare()
  .goto('http://yahoo.com')
  .type('input[title="Search"]', 'github nightmare')
  .click('.searchsubmit');

Source: Nightmare

Comments are closed.