# \#cheerio

**URL:** https://community.postman.com/tag/cheerio/238.md

[Latest](https://community.postman.com/latest.md) · [Categories](https://community.postman.com/categories.md) · [Tags](https://community.postman.com/tags.md)

---

## [Unable to create XML dynamic request body using cheerio](https://community.postman.com/t/unable-to-create-xml-dynamic-request-body-using-cheerio/62353)

<div class="topic-metadata">

**Author:** [@flight-candidate-490](https://community.postman.com/u/flight-candidate-490)\
**Replies:** 0\
**Last updated:** [June 18, 2024, 2:49pm UTC](https://community.postman.com/t/unable-to-create-xml-dynamic-request-body-using-cheerio/62353 "2024-06-18T14:49:48Z")

</div>

I am not able to figure out how to add attribute values to Order & OrderLine tags. Any help is greatly appreciated Sample XML \<?xml version="1.0" encoding="UTF-8"?\> \<Order EMailID="" DocumentType="" EnteredBy="" Order…

---

## [When redirected, how to see the URL you´re redirected to?](https://community.postman.com/t/when-redirected-how-to-see-the-url-you-re-redirected-to/6699)

<div class="topic-metadata">

**Author:** [@chrissbaumann](https://community.postman.com/u/chrissbaumann)\
**Replies:** 5\
**Last updated:** [July 22, 2023, 12:04pm UTC](https://community.postman.com/t/when-redirected-how-to-see-the-url-you-re-redirected-to/6699 "2023-07-22T12:04:06Z")

</div>

Hi, I´m sending a request which returns a 30x and Postman automatically follows the redirect, which is fine. How can I programmatically “see” the URL I´m redirected to, eg in the test tab? This has been raised as an i…

---

## [Get element value from HTML response](https://community.postman.com/t/get-element-value-from-html-response/33289)

<div class="topic-metadata">

**Author:** [@koshmariel](https://community.postman.com/u/koshmariel)\
**Replies:** 1\
**Last updated:** [March 8, 2022, 2:42pm UTC](https://community.postman.com/t/get-element-value-from-html-response/33289 "2022-03-08T14:42:43Z")

</div>

Somewhere in the HTML response there is an element: \<input name="\_\_RequestVerificationToken" type="hidden" value="I\_NEED\_THIS" /\> How can I get it’s value using Postman? This is my code but I’m not happy with what it …

---

## [Submit form from first response request](https://community.postman.com/t/submit-form-from-first-response-request/26938)

<div class="topic-metadata">

**Author:** [@mauricio.gonzalez](https://community.postman.com/u/mauricio.gonzalez)\
**Replies:** 0\
**Last updated:** [August 20, 2021, 2:29am UTC](https://community.postman.com/t/submit-form-from-first-response-request/26938 "2021-08-20T02:29:14Z")

</div>

My question: Even though I might know the answer to this, but is there a way to submit a form inside a HTML response from a request? Details: What I’m trying to do is make a first request: GET https://firstrequest/ w…

---

## [Printing the html attribute and save into csv](https://community.postman.com/t/printing-the-html-attribute-and-save-into-csv/21027)

<div class="topic-metadata">

**Author:** [@gpub1](https://community.postman.com/u/gpub1)\
**Replies:** 21\
**Last updated:** [March 5, 2021, 7:49pm UTC](https://community.postman.com/t/printing-the-html-attribute-and-save-into-csv/21027 "2021-03-05T19:49:31Z")

</div>

1 Call the api 2. Extract output only href tags with submit linkname Or Can capture the id value , requestid value and ln value and save into csv note: out have 50-60 submit links id=24808&requestId=1614881979066&ln…

---

## [Parse HTML form response data and extract form attributes](https://community.postman.com/t/parse-html-form-response-data-and-extract-form-attributes/3562)

<div class="topic-metadata">

**Author:** [@hesam.kamalan](https://community.postman.com/u/hesam.kamalan)\
**Replies:** 3\
**Last updated:** [March 4, 2021, 10:20pm UTC](https://community.postman.com/t/parse-html-form-response-data-and-extract-form-attributes/3562 "2021-03-04T22:20:21Z")

</div>

I have a form in response like blow code. I want to get “action” and “method” using cheerio lib. How can I do that? \<form action="https://my.url.com" method="post"\> ..... \<input type="submit" value="Submit" /\> \</…

---

## [How To Create Dynamic Request Body in JSON and XML](https://community.postman.com/t/how-to-create-dynamic-request-body-in-json-and-xml/19730)

<div class="topic-metadata">

**Author:** [@odanylewycz](https://community.postman.com/u/odanylewycz)\
**Replies:** 0\
**Last updated:** [January 29, 2021, 10:18pm UTC](https://community.postman.com/t/how-to-create-dynamic-request-body-in-json-and-xml/19730 "2021-01-29T22:18:20Z")

</div>

Anyone ever find it difficult to customize a request body in Postman? From my research of the forum, it looks like a commonly asked question around here! It’s actually quite easy, and in this video, I demo how you can ma…

---

## [SOAP API Testing in Postman](https://community.postman.com/t/soap-api-testing-in-postman/19553)

<div class="topic-metadata">

**Author:** [@bpricilla](https://community.postman.com/u/bpricilla)\
**Replies:** 1\
**Last updated:** [January 26, 2021, 3:04pm UTC](https://community.postman.com/t/soap-api-testing-in-postman/19553 "2021-01-26T15:04:52Z")

</div>

Dear Community!! I still see in some places quoted Postman as REST API testing tool. Actually its not like that way. Every tool has its own pros and cons. Its completely your choice. So I thought I can work on some bas…

---

## [Assert the existence of an xml element with cheerio and chai](https://community.postman.com/t/assert-the-existence-of-an-xml-element-with-cheerio-and-chai/18855)

<div class="topic-metadata">

**Author:** [@magnus\_r](https://community.postman.com/u/magnus_r)\
**Replies:** 2\
**Last updated:** [January 5, 2021, 12:55pm UTC](https://community.postman.com/t/assert-the-existence-of-an-xml-element-with-cheerio-and-chai/18855 "2021-01-05T12:55:01Z")

</div>

Hello, I am using Postman to test a SOAP API. In the tests I use the cheerio library to assert the contents of the xml response. So far it has been easy to use cheerio. I can assert that an element has certain text cont…

---

## [Web Scraping with Cheerio.js and Visualizer](https://community.postman.com/t/web-scraping-with-cheerio-js-and-visualizer/10859)

<div class="topic-metadata">

**Author:** [@odanylewycz](https://community.postman.com/u/odanylewycz)\
**Replies:** 0\
**Last updated:** [February 18, 2020, 3:06pm UTC](https://community.postman.com/t/web-scraping-with-cheerio-js-and-visualizer/10859 "2020-02-18T15:06:47Z")

</div>

Hi everyone! I recently made a new video and postman template to show how you can do webscraping in postman, and display your results in Postman Visualizer. Check it out the how to in the video below. A…

---

## [Test script Parsing HTML for data list](https://community.postman.com/t/test-script-parsing-html-for-data-list/16220)

<div class="topic-metadata">

**Author:** [@oskarfromaus](https://community.postman.com/u/oskarfromaus)\
**Replies:** 3\
**Last updated:** [September 27, 2020, 5:14pm UTC](https://community.postman.com/t/test-script-parsing-html-for-data-list/16220 "2020-09-27T17:14:44Z")

</div>

Hi all, I get an HTML response from my GET request. I want to select the \<div\> containing {{string}} in \<h2\> and extract the \<li\> to an array. I’m using cheerio to parse html Example \<div class="contents"\> \<div class…

---

## [Need help with Cheerio parsing HTML Data](https://community.postman.com/t/need-help-with-cheerio-parsing-html-data/7590)

<div class="topic-metadata">

**Author:** [@karumuriabhishek](https://community.postman.com/u/karumuriabhishek)\
**Replies:** 1\
**Last updated:** [September 5, 2019, 9:30am UTC](https://community.postman.com/t/need-help-with-cheerio-parsing-html-data/7590 "2019-09-05T09:30:48Z")

</div>

Hi Team, I have my HTML response as attached. I tried to verify if the database value is equal to Success and Connection value is Up. I am able to grab the database but unable to check the next line or the value of t…

---

## [Cheerio - Capturing value from a JS variable?](https://community.postman.com/t/cheerio-capturing-value-from-a-js-variable/5536)

<div class="topic-metadata">

**Author:** [@postman-paul540](https://community.postman.com/u/postman-paul540)\
**Replies:** 1\
**Last updated:** [May 22, 2019, 10:00am UTC](https://community.postman.com/t/cheerio-capturing-value-from-a-js-variable/5536 "2019-05-22T10:00:17Z")

</div>

Hey, I’ve started using Cheerio for the first time and I’ve tried Googling around but can’t seem to find an answer to this, or if it’s even possible. I want to grab the “int\_id” value that’s inside the variable “mt1\_ins…
