nightwatch-commands support for nightwatch v1
I tried integrating the nightwatch-commands package with nightwatch (version 1.2.1) and I am getting the below issue.
@ellenmobify - It will be greatly appreciated if you can look at this issue.
Console Error Log
λ npm run chrome
> nightwatchjs-selenium-example@1.0.0 chrome C:\Users\sthoma40\MyDocs\Officeworks\Automation\nightwatchjs-selenium-example
> nightwatch -e chrome
[Github] Test Suite
===================
Running: Demo test GitHub
TypeError: Error while running "waitForCondition" command: "TypeError: Class constructor ProtocolActions cannot be invoked without 'new'
"
FAILED: 1 errors (1.355s)
TypeError: Error while running "waitForCondition" command: "TypeError: Class constructor ProtocolActions cannot be invoked without 'new'
"
github.js
module.exports = {
tags: ['git'],
'Demo test GitHub': function (client) {
client
.url('https://github.com/nightwatchjs/nightwatch')
.waitForAjaxCompleted()
.waitForElementVisible('body', 1000)
.getTitle(function (result) {
client.assert.equal(result.indexOf('GitHub - nightwatchjs/nightwatch'), 0, 'Page title starts with nightwatch')
})
.assert.visible('.container h1 strong a')
.assert.containsText('.container h1 strong a', 'nightwatch', 'Checking project title is set to nightwatch');
},
after: function (client) {
client.end();
}
};
Summary
nightwatch-commands support for nightwatch v1 I tried integrating the nightwatch-commands package with nightwatch (version 1.2.1) and I am getting the below issue.
@ellenmobify - It will be greatly appreciated if you can look at this issue.
Console Error Log
github.js
nightwatch.conf.js
Package.json