Windows XP SP3
Firefox 23.0.1
I try to extract the contents of the 7 fields in the picture below.
The macro I use:
Code: Select all
SET !DATASOURCE SA_soll.csv
SET !DATASOURCE_LINE {{!LOOP}}
'Extract filled in data
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ServicePlanFormBean ATTR=ID:FieldMatricule400* EXTRACT=TXT
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ServicePlanFormBean ATTR=ID:FieldMatricule401* EXTRACT=TXT
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ServicePlanFormBean ATTR=ID:FieldMatricule402* EXTRACT=TXT
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ServicePlanFormBean ATTR=ID:FieldMatricule403* EXTRACT=TXT
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ServicePlanFormBean ATTR=ID:FieldMatricule404* EXTRACT=TXT
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ServicePlanFormBean ATTR=ID:FieldMatricule405* EXTRACT=TXT
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ServicePlanFormBean ATTR=ID:FieldMatricule406* EXTRACT=TXT
FILEDELETE NAME=D:\My<SP>Documents\iMacros\Datasources\SA_ist.csv
SAVEAS TYPE=EXTRACT FOLDER=D:\My<SP>Documents\iMacros\Datasources FILE=SA_ist.csv
Code: Select all
"16501","16502","","16503","16546",""
Thanks for your help.
Claude
P.S.: The HTML source code of this part of the page is:
(Unfortunately the site is password protected, so it won't help to give you the link.)
Code: Select all
<td class="tdValueServicePlan" >
<ul>
<li>
<input type="text" name="dailyServiceShiftViewBeanList[4].serviceShiftBeanList[0].userServiceShiftBeanList[0].userServiceShiftIncViewItem.matricule" size="5" id="FieldMatricule40029403170" tabindex="305" />
...
</li>
</ul>
</td>
<input type="hidden" name="dailyServiceShiftViewBeanList[4].serviceShiftBeanList[0].userServiceShiftBeanList[0].userServiceShiftItem.user_service_shift_id" value="29403170" />
<td class="tdValueServicePlan" >
<ul>
<li>
<input type="text" name="dailyServiceShiftViewBeanList[4].serviceShiftBeanList[0].userServiceShiftBeanList[1].userServiceShiftIncViewItem.matricule" value="16501" size="5" id="FieldMatricule40129403171" tabindex="306" />
...
</li>
</ul>
</td>
<input type="hidden" name="dailyServiceShiftViewBeanList[4].serviceShiftBeanList[0].userServiceShiftBeanList[1].userServiceShiftItem.user_service_shift_id" value="29403171" />
<td class="tdValueServicePlan" >
<ul>
<li>
<input type="text" name="dailyServiceShiftViewBeanList[4].serviceShiftBeanList[0].userServiceShiftBeanList[2].userServiceShiftIncViewItem.matricule" value="16502" size="5" id="FieldMatricule40229403172" tabindex="307" />
...
</li>
</ul>
</td>
<input type="hidden" name="dailyServiceShiftViewBeanList[4].serviceShiftBeanList[0].userServiceShiftBeanList[2].userServiceShiftItem.user_service_shift_id" value="29403172" />
<td class="tdValueServicePlan" >
<ul>
<li>
<input type="text" name="dailyServiceShiftViewBeanList[4].serviceShiftBeanList[0].userServiceShiftBeanList[3].userServiceShiftIncViewItem.matricule" size="5" id="FieldMatricule40329403173" tabindex="308" />
...
</li>
</ul>
</td>
<input type="hidden" name="dailyServiceShiftViewBeanList[4].serviceShiftBeanList[0].userServiceShiftBeanList[3].userServiceShiftItem.user_service_shift_id" value="29403173" />
<td class="tdValueServicePlan" >
<ul>
<li>
<input type="text" name="dailyServiceShiftViewBeanList[4].serviceShiftBeanList[0].userServiceShiftBeanList[4].userServiceShiftIncViewItem.matricule" value="16503" size="5" id="FieldMatricule40429403174" tabindex="309" />
...
</li>
</ul>
</td>
<input type="hidden" name="dailyServiceShiftViewBeanList[4].serviceShiftBeanList[0].userServiceShiftBeanList[4].userServiceShiftItem.user_service_shift_id" value="29403174" />
<td class="tdValueServicePlan" >
<ul>
<li>
<input type="text" name="dailyServiceShiftViewBeanList[4].serviceShiftBeanList[0].userServiceShiftBeanList[5].userServiceShiftIncViewItem.matricule" value="16546" size="5" id="FieldMatricule40529403175" tabindex="310" />
...
</li>
</ul>
</td>
<input type="hidden" name="dailyServiceShiftViewBeanList[4].serviceShiftBeanList[0].userServiceShiftBeanList[5].userServiceShiftItem.user_service_shift_id" value="29403175" />
<td class="tdValueServicePlan" colspan="3">
<ul>
<li>
<input type="text" name="dailyServiceShiftViewBeanList[4].serviceShiftBeanList[0].userServiceShiftBeanList[6].userServiceShiftIncViewItem.matricule" size="5" id="FieldMatricule40629403176" tabindex="311" />
...
</li>
</ul>
</td>
<input type="hidden" name="dailyServiceShiftViewBeanList[4].serviceShiftBeanList[0].userServiceShiftBeanList[6].userServiceShiftItem.user_service_shift_id" value="29403176" />