Accepting this download involves enabling Chrome downloads with await page._nd("Page. The link click triggers downloads via a dialog. I'm not sure how ef.write(await ntent()) is working for you - that should only give page HTML, not the XLSX download. I recommend page.waitForXPath which spawns a tight polling loop to continue your code as soon as the xpath becomes available.Īlso on the topic of element selection, I'd use text() in your xpath instead of. That's a race condition that can lead to a false negative at worst and slows your scrape down at best.
0 Comments
Leave a Reply. |