Skip to content

Instantly share code, notes, and snippets.

@NimaSoroush
Created June 9, 2018 11:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NimaSoroush/28c3a5808af393610a33bd32d4c43911 to your computer and use it in GitHub Desktop.
Save NimaSoroush/28c3a5808af393610a33bd32d4c43911 to your computer and use it in GitHub Desktop.
Running Differencify with vanilla node
const Differencify = require('differencify');
const differencify = new Differencify({ debug: true });
(async () => {
const result = await differencify
.init()
.launch()
.newPage()
.setViewport({ width: 1600, height: 1200 })
.goto('https://github.com/NimaSoroush/differencify')
.waitFor(1000)
.screenshot()
.toMatchSnapshot()
.result((result) => {
console.log(result);
})
.close()
.end();
})();
@NimaSoroush
Copy link
Author

2018-06-09_1251

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment