import { Page } from "https://deno.land/x/fresh@1.6.3/tests/deps.ts";
Emulates given device metrics and user agent.
Examples
Example 1
Example 1
const puppeteer = require('puppeteer');
const iPhone = puppeteer.devices['iPhone 6'];
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.emulate(iPhone);
await page.goto('https://www.google.com');
// other actions...
await browser.close();
})();