You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sample script that takes a screenshot of the bottom of a page:
// take-screenshot.jsimport*asfranklinfrom'franklin-bulk-shared';// init headless browserconst[browser,page]=awaitfranklin.Puppeteer.initBrowser();// load test pageawaitpage.goto('https://www.hlx.live');// scroll downawaitfranklin.Puppeteer.scrollDown(page);// wait 1s.awaitfranklin.Time.sleep(1000);// take a screenshotawaitpage.screenshot({fullPage: false,path: 'screenshot.png'});// close browserawaitbrowser.close();
Crawl a domain for max 50 URLs with specific pattern