In Jmeter one of my HTML Requests contains textarea in Response Body:
...
<textarea name="responseABC" id="responseABC" rows="10">
{
"response" : {
"attribute_list" : [ {
"type" : "string_list",
"name" : "FamilyName",
"values" : [ {
"value" : "John"
} ]
}
}
}
</textarea>
...
I need to extract the text from that textarea to send it as a parameter in a next request. I tried using
- CSS Selector Extractor (CSS Selector Expression: "textarea[id="responseABC"]")
- XPath Extractor (XPath Query: "//textarea[@id='responseABC']")
but these return the whole element.
Is there any way I can get only the text itself?
CodePudding user response:
You're almost there with XPath, all you need is to add
More information: Using the XPath Extractor in JMeter