This commit is contained in:
Lamp 2018-05-11 23:38:37 -07:00 committed by GitHub
parent 7bb49405b7
commit 251b9a72c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ global.screenshotter = {
var page = await browser.newPage();
await page.setViewport({width: 1440, height: 900});
await page.goto('http://www.multiplayerpiano.com/lobby');
await page.evaluate(function(){ document.getElementById('modal').click() } });
await page.evaluate(function(){ document.getElementById('modal').click() });
await new Promise(resolve => setTimeout(resolve, 5000));
var screenshot = await page.screenshot({type: 'png'});
var filename = `Screenshot of www.multiplayerpiano.com/lobby @ ${new Date().toISOString()}.png`;