Search code examples
regexjmetertokenextractor

JMeter: Shows "Object Moved Here", though value is extracted using Regular Expression Extractor


I am capturing token value using Regular Expression Extractor, still I can see "Object moved to here." in response data.

Below are the details:

Regular Expression:

name="__RequestVerificationToken" type="hidden" value="([A-Za-z0-9+=/\-\_]+?)"

Template: $1$

Token value in view result is:

<input name="__RequestVerificationToken" type="hidden" value="lRqCm7bYMLnpwBFgQk001juxKm5L9FN3ydzyMCzKcoAnnbQsaLU_0TPRt3Tccg-T0CSFzFuXa3DqSvZGzC1dLoWdoumaZFQ5daLaqiu3MFY1" />        

Please let me know how can I extract value.


Solution

  • An easier solution is to use CSS/JQuery Extractor.

    You would configure it this way:

    enter image description here