how to extract option value from text by regex or xpath from the below response
xpath extractor
//*[@id="form_extsss:fromSerie2"]/option[text()='-DRIVE_ME']/@value
for example:
option value for -DRIVE_ME is 630 (expecting the 630 as final value)
Response
<?xml version="1.0" encoding="UTF-8"?>
<partial-response>
<changes>
<update id="form_extsss"><![CDATA[<form id="form_extsss" name="form_extsss"
method="post" action="" enctype="multipart/form-data">
<select id="form_extsss:fromSerie2" name="form_extsss:fromSerie2" size="1" onchange="PrimeFaces.ab({s:"form_extsss:fromSerie2",e:"valueChange",p:"form_extsss:fromSerie2",u:"form_extsss"});" style="width:110px"> <option value="-1">Select Series</option>
<option value="1384">-HAD</option>
<option value="630">-DRIVE_ME</option>
</select>
</form>]]></update>
<update id="javax.faces.ViewState"><![CDATA[]]></update>
</changes>
</partial-response>