Is it possible to modify an element in the DOM with Puppeteer before creating a screenshot?
you can do that before screen
await page.evaluate(() => {
let dom = document.querySelector('#id');
dom.innerHTML = "change to something"
});
you can do that before screen
await page.evaluate(() => {
let dom = document.querySelector('#id');
dom.innerHTML = "change to something"
});