Skip to content

Commit

Permalink
fix(index): chart not fully loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
jalezi committed May 7, 2021
1 parent b2fb908 commit e84b460
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ module.exports.handler = async (event, context, callback) => {
console.log(`Elements with selector: ${selectorToRemove} removed`);
}

page.waitForTimeout(500);
image = await element.screenshot({ type: 'png', encoding: 'base64' });
console.log('Made screenshot');

Expand Down

0 comments on commit e84b460

Please sign in to comment.