Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Theheadless.dev – open source Puppeteer and Playwright knowledge base. Parent comment
For a foolproof way, you could also just wait until the specific DOM node you want exists. Either by:
- Polling the DOM until it exists via; setTimeout/setInterval
- Using MutationObservers to check the DOM on every node change, until it's been added to the DOM
For a foolproof way, you could also just wait until the specific DOM node you want exists. Either by:
- Polling the DOM until it exists via; setTimeout/setInterval
- Using MutationObservers to check the DOM on every node change, until it's been added to the DOM