Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Eastkap Eastkap

🎯
Focusing
Block or report user

Report or block Eastkap

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@emenoh
emenoh / NightmareEmulatorTest
Last active Dec 24, 2018
NightmareJS screenshots using device emulator
View NightmareEmulatorTest
"use strict";
const Nightmare = require('nightmare');
const url = "http://www.apple.com";
//just an example
const path = "./testfile.png";
//we'll save the screenshot in the same directory
const userAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10A5376e";
//make sure we load the mobile version
You can’t perform that action at this time.