= new Chromeless({ remote: { endpointUrl: 'https://xxxxx.execute-api.ap-northeast-1.ama apiKey: 'xxxxxxxxxxxx' }, }) const screenshot = await chromeless .setUserAgent('Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like M .setViewport({width: 640, height: 1136, scale: 1}) .goto(url) .screenshot() console.log(url) console.log(screenshot) // prints S3 url await chromeless.end() } run('https://www.yahoo.co.jp').catch(console.error.bind(console run('https://www.facebook.com').catch(console.error.bind(console