Michael
Michael•2d ago

Error handling

Hello error handling behaviour is little unclear for some requests 400 are considered sometime as ok sometime as error even more weird i sometime got empty html (i'm 100% sure that not the produced response)
<html><head></head><body></body></html>
<html><head></head><body></body></html>
? even after adding
await waitForSelector('#myID')
await waitForSelector('#myID')
how i suppose to deal with that ? thanks
2 Replies
Olexandra
Olexandra•2d ago
Hi, I'll need more context here. Can you share a code snippet?
Michael
MichaelOP•2d ago
Hi thanks for responding me by using waitForSelector + await page.$eval(id, el => el.innerHTML) is finally do the job šŸ™‚ āœ…

Did you find this page helpful?