Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jadell
· 6y ago · 0 comments
You don't need to poll the DOM yourself. Puppeteer's page.waitForSelector() does this for you. You can specify a timeout of how long to wait.
Comments
[–]
gitgud
6y ago
Woah, yeah I hadn't heard of that part of the api before. Looks perfect for that usecase.