How to set value in a text field using NightwatchJS?
Hey Dipen,
To set value in a text field using NightwatchJS, use the below code:
this.demoTest = function (browser) {
browser.setValue('input[type=text]', 'nightwatch');
};
this.demoTest = function (browser) {
browser.setValue('input[type=text]', ['nightwatch', browser.Keys.ENTER]);
};