I have a puppeteer project in which I'm waiting for some form of information on an Element. For example, in the header, I'm waiting for some new child Nodes.
<div id="outside">
</div>
and then after some time
<div id="outside">
<div id='inside'>
</div>
</div>
is there a way for me to add an event listener to check when the HTML has been changed?
something like
page.addListener('#outside', () => {
console.log('event fired');
}