import * as puppeteer from 'puppeteer' ; async function run ( ) { const browser = await puppeteer . launh ( ) ; const devices = puppeteer . devics ; console . log ( devices ) ; const browser2 = await puppeteer . launch ( ) ; const page = await browser2 . newPage ( 'foo' ) ; const div = ( await page . $ ( 'div' ) ) as puppeteer . ElementHandle < HTMLAnchorElement > ; console . log ( 'got a div!' , div ) ; } run ( ) ;