Facing Issue with the custom command using async/await #3918
Unanswered
anupamtomar
asked this question in
Help Needed
Replies: 1 comment 2 replies
-
Hey @anupamtomar will it be possible to share an example of a custom command? Also, it is advised to use class-based custom commands. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
An issue with the approach using async/await custom command as per the below link-
https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-commands.html#:~:text=Using%20async/await,%7D%0A%7D%3B
I have tried the piece of my test code in the test block using async/await , the code is working fine and synchronously as expected, but the same code is when I am trying in custom command using async/await as suggested in the doc available on nightwatch's site, it is behaving asynchronously. little weird and stuck quite long in it, can someone please help or check from their end?
Beta Was this translation helpful? Give feedback.
All reactions