This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mocketeer = require('mocketeer'); | |
const puppeteer = require('puppeteer'); | |
(async () => { | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
await mocketeer(browser); | |
await page.goto('https://www.example.com'); | |
await page.close(); | |
await browser.close(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |