Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

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

Open
TharaCJ opened this issue Mar 26, 2019 · 2 comments
Open

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

TharaCJ opened this issue Mar 26, 2019 · 2 comments

Comments

@TharaCJ
Copy link

TharaCJ commented Mar 26, 2019

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
Copy link
Contributor

@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
Copy link

Is there any alternative present to use in 1.0+ ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants