Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get data after waitForAllXhrFinished(); #429

Open
kien-pham opened this issue Feb 18, 2021 · 1 comment
Open

How to get data after waitForAllXhrFinished(); #429

kien-pham opened this issue Feb 18, 2021 · 1 comment

Comments

@kien-pham
Copy link

kien-pham commented Feb 18, 2021

Hi,

I'm a newbie and and I want to get data from HTTPRequest number 2. But after the code await pendingXHR.waitForAllXhrFinished(), how do I get the data and close the browser? Something like this?

page.on('response', async (response) => { return response } }); await browser.close();

Thank you for help

@kien-pham kien-pham changed the title get data after waitForAllXhrFinished(); How to get data after waitForAllXhrFinished(); Feb 18, 2021
@jtassin
Copy link
Owner

jtassin commented May 2, 2021

Hi,

Sorry for such a late answer :/

pending-xhr-puppeteer does not provide the capacity to access to the xhr response for now.
This isn't really the use case of puppeteer

What was your exact case ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants