This recipe is for developers who are starting out in nightwatch and struggle with this particular problem. You want to learn how to simulate a double-click for testing and you don't know nightwatch? Go back one recipe.
I will assume that your setup with nightwatch is working and you can launch tests. I will also assume that you have all the commands installed from the preceding recipe.