dwyl/learn-nightwatch

Screenshot image file not placed under screenshots folder

Opened this issue · 3 comments

Hi,

I'm newbie on NodeJS and Nightwatch.
I already followed your steps and it works but .png file not placed under screenshots folder, it is placed under root project folder.
Is there any suggestion?

Thank you :)

@fergadipa what Operating System are you running...?

Windows 10 64bit

Ok, this is a path issue ... 🙄
In your nightwatch.conf.js you will need to specific the full path to where you want to save the Screenshots. e.g:

const SCREENSHOT_PATH = "./node_modules/nightwatch/screenshots/" + PKG.version + "/";

The path on your Windows machine will be different, update it (to where you want to save the screenshots) and try running again.