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
-
I need to create a Nightwatch command that returns a custom value, instead of the
browser
object, something like this - filetests/Nightwatch/Commands/myTestCommand.js
:And the test:
But the custom command
myTestCommand
returns not the string 'foo', but the NightwatchAPI (browser) object, here is the output:So, how can I receive the
foo
string return value instead of the browser object in my custom command?Beta Was this translation helpful? Give feedback.
All reactions