How to return a custom value from a custom Nightwatch command? #4253
Unanswered
MurzNN
asked this question in
Help Needed
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I need to create a Nightwatch command that returns a custom value, instead of the
browserobject, something like this - filetests/Nightwatch/Commands/myTestCommand.js:And the test:
But the custom command
myTestCommandreturns not the string 'foo', but the NightwatchAPI (browser) object, here is the output:So, how can I receive the
foostring return value instead of the browser object in my custom command?All reactions