Meta
Probant
Seeing things move and do something when you write a few lines of text. Seeing those things come to life gives you an unusual sense of power and satisfaction of “creating” something life-like. ⚡️
const puppeteer = require('puppeteer');
async function main() {
const browser = await puppeteer.launch({headless: true});
const page = await browser.newPage();
await page.setViewport({width: 1200, height: 720});
await page.goto('https://stackoverflow.com/users/login', { waitUntil: 'networkidle0' }); // wait until page load
await page.screenshot({path: getFormattedTime() + '__screenshot-1.png'})
await page.type('#email', '');
await page.type('#password', '');
// click and wait for navigation
await Promise.all([
page.click('#submit-button'),
page.waitForNavigation({ waitUntil: 'networkidle0' }),
page.screenshot({path: getFormattedTime() + '__screenshot-3.png'})
]);
await page.screenshot({path: getFormattedTime() + '__screenshot-2.png'});
await browser.close();
}
main();
function getFormattedTime() {
var today = new Date();
var y = today.getFullYear();
// JavaScript months are 0-based.
var m = today.getMonth() + 1;
var d = today.getDate();
var h = today.getHours();
var mi = today.getMinutes();
var s = today.getSeconds();
return y + "-" + m + "-" + d + "-" + h + "-" + mi + "-" + s;
}
Abit sua
se Lorem markdownum negat. Argo saxa videnda cornuaque hunc qui tanta spes teneas! Obliquis est dicenti est salutat ille tamen iuvenum nostrae dolore. - Colores nocituraque comitata eripiunt - Addit quodcunque solum cui et dextram illis - Nulli meus nec extemplo ille ferebat pressit Se blandita fulvae vox gravem Pittheus cesserunt sanguine herbis tu comitum tenuit. Sui in ruunt; Doridaque maculosae fuissem! Et loqui.
Did you know?
No means no!!!
Steve Jobs