-
I am looking for a property for method that will return the raw body of the response. Is it possible to receive the raw body from a response? Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
How about |
Beta Was this translation helpful? Give feedback.
-
Thank you very much! // Rendered HTML
const renderedHtml = await page.content();
// Raw HTML
const rawHtml = await response.body().toString(); |
Beta Was this translation helpful? Give feedback.
Thank you very much!
So, I found that page.content() returns rendered HTML. response.body() returns the raw HTML code.