TestArmada / nightwatch-extra

MIT License
30 stars 26 forks source link

Set custom screenshot output path #101

Open ryandberger opened 6 years ago

ryandberger commented 6 years ago

I using this library through Magellan and I am having trouble setting the screenshot path to anything besides the default ./temp. In settings.js, it suggests passing--screenshots=path/to/temp/screenshot/directory, but that doesn't have any effect. I also tried using --screenshot_path=path/to/temp/screenshot/directory to match what the code appears to be looking for. Any suggestions?

I am calling my tests like this...

"./node_modules/.bin/magellan --local_browsers chrome --serial --screenshot_path \".\/test-data\""

archlichking commented 6 years ago

Thanks for reporting this bug. I've it identified here and will fix it soon. The logic for handling --screenshot_path is somehow missing in the plugin. For now the screenshot is saved in default ./temp folder .