Previously I used Webdriver IO for testing, but now I use nightwatch.js.
I have not found solutions in documentation (setValue() is not working)
Webdriver IO provides very simple command for that:
.chooseFile("input", "./path/to/image")
But what I can do by using nightwatch.js?