Get your site tested using Selenium coupled with NightwatchJS for a quicker execution

Nightwatch.js is an easy to use Node.js based end-to-end (E2E) testing solution for browser based apps and websites. It uses the powerful W3C WebDriver API to perform commands and assertions on DOM elements.

Nightwatch works by communicating over a restful HTTP API with a WebDriver server (typically the Selenium server). The restful API protocol is defined by the W3C WebDriver API.

Nightwatch when coupled with Selenium becomes very strong and deliver quicker execution results with beautiful and user friendly html reports.


Outline/Structure of the Talk

  • What is Nightwatch JS
  • Why and when to use NightwatchJS
  • Installation of NightwatchJS
  • Taste of Selenium in NightwatchJS
  • Sample Test and its explanation
  • Execute the test
  • Reports
  • Integration with Jenkins (If time permits)
  • Questions & Doubts

Learning Outcome

  • Kickstart to Selenium with Nightwatch
  • Functional test along with BDD using Nightwatch and Selenium
  • Reports

Target Audience

Tester who is planning to move from Manual to Automation and has a basic idea of Selenium, Automation Testers who are working with Selenium and JS

Prerequisites for Attendees

Basics of selenium is what is mandatory and rest everything would be taken care of.

schedule Submitted 1 year ago

Public Feedback

comment Suggest improvements to the Speaker
  • Marcus Merrell
    By Marcus Merrell  ~  1 year ago
    reply Reply

    I am interested in hearing about a successful Nightwatch integration, but I would like to know more about your position on the platform's breaking of the Page Object Pattern, namely in how it requires Assertions to be performed on Selenium WebElements—one of the prime tenants of the Page Object Pattern (as well as Selenium testing practices in general) is the separation of "test intent (i.e. judgment)" from "implementation". My Page Objects should only execute instructions and return status, they should not exercise judgment.

    If your proposal can address this concern, you might have my support for this talk. It's a question I'm trying to figure out in my own company's implementation of Nightwatch, and I'm trying to get a better handle on how the Nightwatch community at large is confronting it.

    At the moment I don't see much discussion of it, and my fear is that it's introducing a generation of JavaScript Selenium users to some very dangerous patterns—a "mixing of concerns", if you will.

  • Deepshikha Singh
    By Deepshikha Singh  ~  1 year ago
    reply Reply

    Hi Pooja,

    As we know most of the sites are migrating towards Javascript for faster execution and better performance, hence Nightwatch is useful in locating JS elements too easily which is bit difficult with Selenium alone. So, when Nightwatch coupled with Selenium it becomes very strong tool and easy to use for even the JS sites.

  • Pooja Shah
    By Pooja Shah  ~  1 year ago
    reply Reply

    Hi Deepshikha and Karan,

    Thanks for sending the proposal, however, it is important to know "what exact problems the talk address" Eg. An attendee should know "Why should they learn NightWatch", what problems it can solve, what is that other existing tools do not solve

    The clearer the proposal, easier for attendees to decide the end goal and join you.