TestArmada / nightwatch-extra

MIT License
30 stars 25 forks source link

Getting Error 'this.client.assertion' is not a function #128

Open TharaCJ opened 5 years ago

TharaCJ commented 5 years ago

I am working on setting up automation test for an application using nightwatch. When i run the tests, getEl function call fails at - /node_modules/testarmada-nightwatch-extra/lib/base-command.js in the below line of pass function -

this.client.assertion(true, pactual, pexpected, _util2.default.format(message, this.time.totalTime), true);

and the error is **TypeError: this.client.assertion is not a function. Wondering whether i missed anything in the config. Appreciate any help.

pschroeder89 commented 5 years ago

@tharacj make sure that you are locked to nightwatch version 0.9.21 in your package.json. NW Extra isn't compatible with Nightwatch 1.0+ yet.

yogeshdawkhar commented 4 years ago

Is there any alternative present to use in 1.0+ ?