Demo of using Selenium and Nightwatch to automate a DuckDuckGo search
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Selenium Nightwatch Demo

This demo goes along with the blog post:


Selenium is an extremeley useful tool for automating end-to-end tests. It uses the W3C WebDriver API to launch an instance of a browser (such as Chrome, Firefox, or Safari), navigate to a web page, then run assertions that verify the page is appearing/functioning as you expect. This demo launches a Selenium (using Nightwatch), navigates to the the DuckDuckGo search engine, makes a simple query, and asserts the results are as expected.


Clone the project and install the dependencies

git clone
cd selenium-nightwatch-demo && npm install

Running Tests

To run the tests, simply run the following command. It gets the test script from the package.json file and runs that command. Chrome will launch and run the duck-duck-go.js test.

npm run test