const browser = require('../browser'); module.exports = async ({ fullPage = true, element = null, path: customPath = null }) => { await browser.start(); const file = await browser.screenshot({ fullPage, path: customPath, element }); return { success: true, action: 'screenshot', file }; };