// change the account input element to "type=password" to hide the value cy.get('#account-id').invoke('attr', 'type', 'password') // now take the screenshot cy.get('#account').screenshot('account', { overwrite: true, })
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter