⛔️ DEPRECATED: Percy now support single element comparaison nativaly. see: https://docs.percy.io/docs/screenshot-a-single-element # percy-element-selection-nightwatchjs The purpose of this library is to provide an API allowing partial content comparaison
npm install @maxmattone/percy-nightwatch-element-selection⛔️ DEPRECATED: Percy now support single element comparaison nativaly. see: https://docs.percy.io/docs/screenshot-a-single-element
``bash`
npm install @maxmattone/percy-nightwatch-element-selection
add the following:
`javascript
const elementselection = require('@maxmattone/percy-nightwatch-element-selection');
module.exports = {
custom_commands_path: [elementselection.path],
}
`How to use
`javascript
browser
.url("https://www.browserstack.com")
.percySnapshotForSelectedElements('BS signup', {elements:'#signupModalButton'})
``