forked from NimaSoroush/differencify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
24 lines (20 loc) · 661 Bytes
/
Copy pathtest.js
File metadata and controls
24 lines (20 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var Differencify = require('differencify');
const differencify = new Differencify({ debug: true });
(async () => {
let result = await differencify
.init(TestOptions)
.resize({ width: 1600, height: 1200 })
.goto('https://github.com/NimaSoroush/differencify')
.wait(3000)
.capture()
.close()
.end();
// or unchained
const page = await differencify.init({ chain: false });
await page.resize({ width: 1600, height: 1200 });
await page.goto('https://github.com/NimaSoroush/differencify');
await page.wait(3000);
await page.capture();
result = await page.close();
console.log(result); // Prints true or false
})();