I'm looking to make a correlation for a dropdown menu. I need the number inside this option value:
<option value="2386">
My LB would be <option value=" and RB ">
The problem is this returns thousands of values. I can't use ORD since there is always a different number of option values based on earlier actions inside my script. I also don't think REGEXP will help here since there are other option values that contain 4 digits.
The reason I can't make my LB more specific is because I need to select a random option value for that drop down menu. This is the full block below:
<td colspan="6"><select name="DrpDwnProblemDetail" onchange="javascript:setTimeout('__doPostBack(\'DrpDwnProblemDetail\',\'\')', 0)" id="DrpDwnProblemDetail" style="width:584px;"><option selected="selected" value="0">[SELECT]</option><option value="2386">###########</option><option value="2387">##########</option><option value="2390">###########</option><option value="2388">###########</option><option value="2389">#############</option></select></td>
So I need to scan through and find that drop down menu, the count of option values under it, and then select a random one. This wouldn't be a problem if there weren't hundreds of other identical drop down option values that use the same boundaries, causing me to have a much higher count value than is actually there.
I'm not sure if this would be a viable solution, but I set a correlation to take that entire block of text:
web_reg_save_param("c_TESTING", "LB=<select name=\"DrpDwnProblemDetail\"", "RB=</select>", LAST);
Is there some way that I can now perform a correlation on that parameter I just created? This would only return any option values for the correct menu.
Any advice would be appreciated, please let me know if I didn't explain this clearly or if more information is needed.
*I'm running VuGen 11.52 on Windows 7