Hi all,
I am stuck with the following problem. Given the response with data
containing:
<select name="A" id="selectA">
<option value="">none</option>
<option value="01">first</option>
<option value="02">second</option>
</select>
<select name="B" id="selectB">
<option value="">none</option>
<option value="01">first</option>
<option value="02">second</option>
</select>
what is a way of getting JMeter to loop thorough values of options for
the <select> "block A" _only_? I need values "", "01" and "02" only to
loop thorough.
I can get a Regular Expression extractor to fetch a complete <select>
block by using:
(?s)<select\s+name="A".*?>(.+?)</select>
I can get _all_ six <option>s by using:
<option\s+value\="([^"]+)">
Just to make clear the reg.ex.:
<select\s+name="A"\s+id="selectA">(\s*<option\s+value="([^"]+)">[^<]+<\/option\>)+\s+</select>
does not work. This is a universal problem where looping thorough same
element types but having the parent with unique ID as when using several
lists, tables etc. on the same html page
Silvester
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]