avatar
Untitled

Guest 100 25th Nov, 2019

JAVASCRIPT 1.26 KB
                                           
                         const start = process.hrtime.bigint();
const puppeteer = require('puppeteer');
(async () => {
  const browser = await puppeteer.launch({headless:true});
  const page = await browser.newPage();
  await page.goto('https://www.supremenewyork.com/shop/172614')
  await page.click('#add-remove-buttons > input');
  await page.waitFor(300);
  await page.goto('https://www.supremenewyork.com/checkout');
  await page.type('#order_billing_name', 'Michael Ho');
  await page.type('#order_email', '[email protected]');
  await page.type('#order_tel', '6504847213');
  await page.type('#bo', '1081 Natoma St');
  //await.page.type('#oba3', '');
  await page.type('#order_billing_zip', '94103');
  await page.type('#order_billing_city', 'San Francisco');
  await page.select('#order_billing_state', 'CA');
  await page.type('#rnsnckrn', '1234123412341234');
  await page.select('#credit_card_month', '11');
  await page.select('#credit_card_year', '2021');
  await page.type('#orcer', '123');
  await page.click('#cart-cc > fieldset > p:nth-child(6) > label > div > ins');
  const end = process.hrtime.bigint();
  console.log(`Benchmark took ${end - start} nanoseconds`);
  //await.page.type('#pay > input');
})();
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data