79620356

Date: 2025-05-13 20:11:20
Score: 1
Natty:
Report link

If you need to execute something after DOM has loaded do this:

await page.evaluateOnNewDocument(() => {
  window.addEventListener('DOMContentLoaded', function() {
    // do DOM stuff here
  });
});

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: James Donaghue