Create websites with TailwindCSS
Start building the next great SAAS
Alpine & Tailwind UI Library
Plug'n Play Authentication for Laravel
Create website designs with AI
Blog platform for developers
Build a simple static website
21-day program to build a SAAS
Upgrade your account to get access to all content.
Created on March 28th, 2016
Nightmare JS is an awesome javascript automation library. You can use this library to automate all kinds of browser tasks and you could also use this library for some end-to-end testing of your application.
Be sure to checkout NightmareJS at http://www.nightmarejs.org/
Below you will find the code that we used in the video to bring up google images and search for 'Funny Cats':
var Nightmare = require('nightmare');
var nightmare = Nightmare({ show: true });
nightmare
.goto('https://images.google.com')
.type('#lst-ib', 'funny cats')
.click('#sblsbb button')
.wait('5000')
.end()
.then(function (result) {
console.log(result)
});
Be sure to checkout this awesome library and have some fun playing around with it.
265
Comments (0)