If you are using Nightwatch JS to test a website and you need to test an anchor nested in an unsorted list, be sure to add the name attribute in the anchor, otherwise, the click command will fail. Let’s see a simple case with an HTML markup like this:
Here you’ll find some useful jQuery snippets for document loaded.
Have a look at the code below: Also, you can use this tip in: The double pipe is great, don’t you? However, you have to be careful, because this tip can be dangerous. See some example below: