How to click on an element in JS-Nightwatch?

Tell me the method to click on an element in JS-Nightwatch.

Hello Russell,

You can use the below code to click on an element in JS-Nightwatch:

this.demoTest = function (client) {
  client.click("#main ul li a.first");
};

Reference: click | API Reference | Nightwatch.js