Reputation: 11
I see the otp passed like this. I need to extract the OTP and post it in the OTP field request
<input type="hidden" name="CCus" value="TesSS4550379362465">
<input type="hidden" name="OTPHidden" value="Z5oJYn">
Upvotes: 1
Views: 1752
Reputation: 168092
There are several options:
Using Regular Expression Extractor like:
OTP
<input type="hidden" name="OTPHidden" value="(.+?)">
$1$
Using XPath Extractor like:
check
. It might not be required if your response is XML/XHTML-compliantOTP
//input[@name='OTPHidden']/@value
Using CSS/JQuery Extractor like:
OTP
input[name=OTPHidden]
value
In all cases refer the extracted value as ${OTP}
in the next request.
In regards to which option to choose:
Upvotes: 4