Hey ๐ , I need your help with the download. I click on an element. In the background will be executed a POST-Request to an endpoint which generates a XML-File. Then the download starts. I wanna validate the XML-File. My assumption was to do it like that:
page.on('download', (download) => download.createReadStream().then(console.log));
But it is not working. I get the attached message in my VS-Code. Any ideas what is wrong or how to fix that?
This thread is trying to answer question "How can I download and validate an XML file triggered by a POST request in Chromium?"
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].