Categories
Posts

NightmareJS

If you’ve ever felt like PhantomJS was too verbose, you may want to try NightmareJS. It is a wrapper around PhantomJS that uses English language style commands:

[sourcecode lang=”js”]
new Nightmare()
.goto(‘http://yahoo.com’)
.type(‘input[title="Search"]’, ‘github nightmare’)
.click(‘.searchsubmit’)
.run();
[/sourcecode]

Leave a Reply

Your email address will not be published. Required fields are marked *